summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);