diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-14 15:33:06 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-14 15:33:06 +0000 |
commit | e531460387e068c8f52aa52eb2bfcda854b46489 (patch) | |
tree | 640b5454c258948cc33dbb09b48491a57243c1de /urpmf | |
parent | 0c8f651988b155d12deb3aea26c2f206648c61e5 (diff) | |
download | urpmi-e531460387e068c8f52aa52eb2bfcda854b46489.tar urpmi-e531460387e068c8f52aa52eb2bfcda854b46489.tar.gz urpmi-e531460387e068c8f52aa52eb2bfcda854b46489.tar.bz2 urpmi-e531460387e068c8f52aa52eb2bfcda854b46489.tar.xz urpmi-e531460387e068c8f52aa52eb2bfcda854b46489.zip |
Fix the parsing of command-line options of urpmf when no option is specified
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -89,7 +89,7 @@ urpm::args::parse_cmdline(); my $urpm = new urpm; $verbose or $urpm->{log} = sub {}; -foreach (scalar(keys %params)) { +foreach (scalar(grep { defined $_ } values %params)) { $_ == 0 and do { defined $quiet or $quiet = 1; $params{files} = 1 }; $_ == 1 and do { defined $quiet or $quiet = 1 }; $_ > 1 and do { defined $quiet or $quiet = 0 }; |