Commit 7ec4e6d5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

remove: move realization behind main func

parent e8d2274d
...@@ -42,21 +42,6 @@ epm_remove_low() ...@@ -42,21 +42,6 @@ epm_remove_low()
return 1 return 1
} }
epm_remove()
{
[ -n "$pkg_filenames" ] || fatal "Run remove without args"
epm_remove_low $pkg_filenames && return
if [ -n "$non_interactive" ] ; then
epm_remove_nonint $pkg_filenames
local RET=$?
# if not separate command, use usual command
[ "$RET" = "5" ] || return $RET
fi
epm_remove_names $pkg_filenames
}
epm_remove_names() epm_remove_names()
{ {
[ -z "$1" ] && return [ -z "$1" ] && return
...@@ -122,3 +107,19 @@ epm_remove_nonint() ...@@ -122,3 +107,19 @@ epm_remove_nonint()
return 5 return 5
} }
epm_remove()
{
[ -n "$pkg_filenames" ] || fatal "Run remove without args"
epm_remove_low $pkg_filenames && return
if [ -n "$non_interactive" ] ; then
epm_remove_nonint $pkg_filenames
local RET=$?
# if not separate command, use usual command
[ "$RET" = "5" ] || return $RET
fi
epm_remove_names $pkg_filenames
}
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