Commit 266628d8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm autoremove --direct: fix args handling

parent fc1042cc
...@@ -153,13 +153,13 @@ __epm_autoremove_altrpm() ...@@ -153,13 +153,13 @@ __epm_autoremove_altrpm()
load_helper epm-packages load_helper epm-packages
assure_exists /usr/share/apt/scripts/list-nodeps.lua apt-scripts assure_exists /usr/share/apt/scripts/list-nodeps.lua apt-scripts
if [ -z "$pkg_names" ] ; then if [ -z "$*" ] ; then
pkg_names="$epm_autoremove_default_groups" pkg_names="$epm_autoremove_default_groups"
elif [ "$pkg_names" = "python" ] ; then elif [ "$*" = "python" ] ; then
pkg_names="python2 python3" pkg_names="python2 python3"
fi fi
for i in $pkg_names ; do for i in "$@" ; do
case $i in case $i in
libs) libs)
__epm_autoremove_altrpm_lib libs __epm_autoremove_altrpm_lib libs
...@@ -242,7 +242,7 @@ case $BASEDISTRNAME in ...@@ -242,7 +242,7 @@ case $BASEDISTRNAME in
"alt") "alt")
if [ -z "$direct" ] ; then if [ -z "$direct" ] ; then
[ -n "$1" ] && fatal "Run autoremove without args or with --direct. Check epm autoremove --help to available commands." [ -n "$1" ] && fatal "Please, run autoremove without args or with --direct. Check epm autoremove --help to available commands."
if epm installed sudo ; then if epm installed sudo ; then
epm mark manual sudo || fatal epm mark manual sudo || fatal
fi fi
......
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