summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-17 17:58:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-17 17:58:53 +0000
commit1c8ac2443832a0bba460f06f7f69429652c18661 (patch)
tree5eeb6702c1ca59f4eb64445b4d1a93f3141b76e9
parent7edb0f509e6d635a030a924f74906093d6fee490 (diff)
downloadurpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar
urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar.gz
urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar.bz2
urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.tar.xz
urpmi-1c8ac2443832a0bba460f06f7f69429652c18661.zip
Use hdlists when you must
-rwxr-xr-xurpmf17
1 files changed, 13 insertions, 4 deletions
diff --git a/urpmf b/urpmf
index 16f8081a..1be612fc 100755
--- a/urpmf
+++ b/urpmf
@@ -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,