Commit e6b70b09 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-remove: make empty arg list is ok (ALT bug 39322)

parent 3551d052
......@@ -281,7 +281,10 @@ epm_remove()
[ -n "$pkg_files" ] && pkg_names="$pkg_names $(epm query $pkg_files)"
pkg_files=''
[ -n "$pkg_names" ] || fatal "Remove: package name is missed."
if [ -z "$pkg_names" ] ; then
warning "no package(s) to remove."
exit 0
fi
# remove according current arch (if x86_64) by default
pkg_names="$(echo $pkg_names | exp_with_arch_suffix)"
......
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