Commit 4290ae81 authored by Vitaly Lipatov's avatar Vitaly Lipatov

simulate: it is ok to run with empty list

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