Commit 0bb8fd48 authored by Vitaly Lipatov's avatar Vitaly Lipatov

autoorphans: do real removing

parent 6435fad7
...@@ -32,9 +32,10 @@ case $PMTYPE in ...@@ -32,9 +32,10 @@ case $PMTYPE in
apt-rpm) apt-rpm)
# ALT Linux only # ALT Linux only
assure_exists /etc/buildreqs/files/ignore.d/apt-scripts apt-scripts assure_exists /etc/buildreqs/files/ignore.d/apt-scripts apt-scripts
__epm_orphan_altrpm echo "We will try remove all installed packages which are missed in repositories"
info "TODO: this was just a list of orphans" warning "Use with caution!"
# | sudocmd epm remove local PKGLIST=$(__epm_orphan_altrpm | sed -e "s/\.32bit//g")
docmd epm remove $PKGLIST
;; ;;
apt-dpkg|aptitude-dpkg) apt-dpkg|aptitude-dpkg)
assure_exists deborphan assure_exists deborphan
...@@ -47,7 +48,7 @@ case $PMTYPE in ...@@ -47,7 +48,7 @@ case $PMTYPE in
yum-rpm) yum-rpm)
showcmd package-cleanup --orphans showcmd package-cleanup --orphans
local PKGLIST=$(package-cleanup --orphans) local PKGLIST=$(package-cleanup --orphans)
sudocmd epm remove $PKGLIST docmd epm remove $PKGLIST
;; ;;
urpm-rpm) urpm-rpm)
showcmd urpmq --auto-orphans showcmd urpmq --auto-orphans
......
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