Commit f08cab0c authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repo clean: implement via epm repo remove tasks,cdroms

parent e8f4c390
...@@ -97,8 +97,12 @@ __epm_removerepo_alt() ...@@ -97,8 +97,12 @@ __epm_removerepo_alt()
info "remove korinf repo" info "remove korinf repo"
__epm_removerepo_alt_grepremove "Korinf/" __epm_removerepo_alt_grepremove "Korinf/"
;; ;;
cdroms)
info "remove cdroms entries"
__epm_removerepo_alt_grepremove "/^[[:space:]]*rpm[[:space:]]+cdrom:/" "/^cdrom(s)?$/"
;;
tasks) tasks)
info "remove task repos" info "remove tasks' repos"
__epm_removerepo_alt_grepremove " repo/[0-9]+/" "/tasks/[0-9]+ " "/[0-9]+[ /]build/repo" __epm_removerepo_alt_grepremove " repo/[0-9]+/" "/tasks/[0-9]+ " "/[0-9]+[ /]build/repo"
;; ;;
task) task)
......
...@@ -75,9 +75,8 @@ epm_repo() ...@@ -75,9 +75,8 @@ epm_repo()
epm_addkey "$@" epm_addkey "$@"
;; ;;
clean) # HELPCMD: remove temp. repos (tasks and CD-ROMs) clean) # HELPCMD: remove temp. repos (tasks and CD-ROMs)
[ "$BASEDISTRNAME" = "alt" ] || fatal "TODO: only ALT now is supported" load_helper epm-repofix
# TODO: check for ALT epm_repoclean "$@"
sudocmd apt-repo $dryrun clean
;; ;;
save) # HELPCMD: save sources lists to a temp place save) # HELPCMD: save sources lists to a temp place
load_helper epm-reposave load_helper epm-reposave
......
...@@ -274,3 +274,9 @@ case $PMTYPE in ...@@ -274,3 +274,9 @@ case $PMTYPE in
esac esac
} }
epm_repoclean()
{
epm repo remove tasks
epm repo remove cdroms
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment