Commit 26d0ac11 authored by Vitaly Lipatov's avatar Vitaly Lipatov

autoremove: add --auto support for yum

parent c0c4db01
...@@ -33,7 +33,7 @@ case $PMTYPE in ...@@ -33,7 +33,7 @@ case $PMTYPE in
yum-rpm) yum-rpm)
# cleanup orphanes? # cleanup orphanes?
while true ; do while true ; do
docmd package-cleanup --leaves docmd package-cleanup --leaves $(subst_option non_interactive --assumeyes)
# FIXME: package-cleanup have to use stderr for errors # FIXME: package-cleanup have to use stderr for errors
local PKGLIST=$(package-cleanup --leaves | grep -v "Loaded plugins" | grep -v "Unable to") local PKGLIST=$(package-cleanup --leaves | grep -v "Loaded plugins" | grep -v "Unable to")
[ -n "$PKGLIST" ] || break [ -n "$PKGLIST" ] || break
......
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