Commit dce575f4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

simulate: return 2 if have no work

parent e6072bd5
......@@ -23,11 +23,11 @@ load_helper epm-install
epm_simulate()
{
local CMD
[ -z "$pkg_filenames" ] && echo "Skip empty list" && return 0
[ -z "$pkg_filenames" ] && echo "Skip empty list" && return 2
local filenames="$(echo $pkg_filenames | filter_out_installed_packages)"
# FIXME: can't correct receive status 2 in mandriva?
[ -z "$filenames" ] && echo "All packages are already installed" && return 0 #&& return 2
[ -z "$filenames" ] && echo "All packages are already installed" && return 2
case $PMTYPE in
apt-rpm|apt-dpkg)
......
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