Commit f1bdee20 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm autoorphans: don't call epm remove without packages

parent eda5b2d7
......@@ -49,16 +49,15 @@ case $PMTYPE in
fi
PKGLIST="$(estrlist exclude "$play_installed" "$PKGLIST")"
if [ -z "$dryrun" ] && [ -n "$PKGLIST" ] ; then
showcmd epm remove $dryrun $force $PKGLIST
confirm_info "We will remove packages above."
fi
# if [ -n "$dryrun" ] ; then
# echo "$PKGLIST"
# else
if [ -n "$PKGLIST" ] ; then
if [ -z "$dryrun" ] ; then
showcmd epm remove $dryrun $force $PKGLIST
confirm_info "We will remove packages above."
fi
docmd epm remove $dryrun $force $(subst_option non_interactive --auto) $PKGLIST
# fi
else
echo "There are no orphan packages in the system."
fi
;;
apt-dpkg|aptitude-dpkg)
assure_exists deborphan
......
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