diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-09-27 09:18:25 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-09-27 09:18:25 +0000 |
commit | 9566de4b8abcb5060f4ccc670233f704c6e55318 (patch) | |
tree | 805096583b886293dfbe647122c062e77cb087a0 /perl-install | |
parent | 671e44a9b0887755f478c50a7aa6b84afa1a1266 (diff) | |
download | drakx-9566de4b8abcb5060f4ccc670233f704c6e55318.tar drakx-9566de4b8abcb5060f4ccc670233f704c6e55318.tar.gz drakx-9566de4b8abcb5060f4ccc670233f704c6e55318.tar.bz2 drakx-9566de4b8abcb5060f4ccc670233f704c6e55318.tar.xz drakx-9566de4b8abcb5060f4ccc670233f704c6e55318.zip |
get rid of "rpmq: no arguments given for query"
(eg: when calling ensure_are_installed with an empty list)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/do_pkgs.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm index c98019062..4d1464bc2 100644 --- a/perl-install/do_pkgs.pm +++ b/perl-install/do_pkgs.pm @@ -237,6 +237,8 @@ sub is_installed { sub are_installed { my ($_do, @l) = @_; + @l or return; + my @l2; run_program::run('/bin/rpm', '>', \@l2, '-q', '--qf', "%{name}\n", @l); #- do not care about the return value intersection(\@l, [ chomp_(@l2) ]); #- can not return directly @l2 since it contains things like "package xxx is not installed" |