diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-17 17:58:53 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-17 17:58:53 +0000 |
commit | 1c8ac2443832a0bba460f06f7f69429652c18661 (patch) | |
tree | 5eeb6702c1ca59f4eb64445b4d1a93f3141b76e9 /urpmf | |
parent | 7edb0f509e6d635a030a924f74906093d6fee490 (diff) | |
download | urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar.gz urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar.bz2 urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar.xz urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.zip |
Use hdlists when you must
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -25,7 +25,7 @@ use urpm::msg; sub usage { print N("urpmf version %s -Copyright (C) 2002-2004 Mandriva. +Copyright (C) 2002-2005 Mandriva. This is free software and may be redistributed under the terms of the GNU GPL. usage: @@ -164,9 +164,18 @@ if ($env) { local $urpm->{fatal} = sub { printf STDERR "%s\n", $_[0] }; $urpm->shlock_urpmi_db; } -my $use_hdlist = ($params{description} || - $params{sourcerpm} || $params{packager} || $params{buildhost} || - $params{url} || $params{files}); +my $use_hdlist = scalar grep { $params{$_} } qw( + buildhost + buildtime + conf_files + description + distribution + files + packager + sourcerpm + url + vendor +); $urpm->configure( nocheck_access => 1, noskipping => 1, |