summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-15 14:35:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-15 14:35:30 +0000
commitfee82a455ebff572a83a7d034759692dc0cdf446 (patch)
tree091300327642662ae27704b0a54c73fa8b82ea94
parentd0a7b8677e5716b9b894798bfc352c4acc2f7bc6 (diff)
downloadurpmi-fee82a455ebff572a83a7d034759692dc0cdf446.tar
urpmi-fee82a455ebff572a83a7d034759692dc0cdf446.tar.gz
urpmi-fee82a455ebff572a83a7d034759692dc0cdf446.tar.bz2
urpmi-fee82a455ebff572a83a7d034759692dc0cdf446.tar.xz
urpmi-fee82a455ebff572a83a7d034759692dc0cdf446.zip
- urpmq
o fix --list (regression introduced in 5.0) (those lines were wrongly dropped in r232614 2007-12-19)
-rw-r--r--NEWS1
-rwxr-xr-xurpmq3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b3b49029..0117e935 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
- urpmq:
o add --sourcerpm
o deprecate "urpmq --requires", "urpmq -R" and "urpmq -RR"
+ o fix --list (regression introduced in 5.0)
Version 5.0 - 11 January 2008, by Pascal "Pixel" Rigaux
diff --git a/urpmq b/urpmq
index df9c3462..e32b3728 100755
--- a/urpmq
+++ b/urpmq
@@ -197,6 +197,9 @@ if ($options{list_aliases}) {
print "\n";
}
exit 0;
+} elsif ($options{list}) {
+ # --list lists all available packages: select them all
+ @{$state->{selected}}{0 .. $#{$urpm->{depslist}}} = ();
} else {
%requested = $urpm->register_rpms(@files);