summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xurpmq1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 383b2b02..4bd26a01 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
o add --conflicts
o --requires now display the raw requires, use --requires-recursive to get
the old behaviour (#29176)
+ o make "urpmq --list xxx" display "use -l to list files" and exit on error
- urpmf:
o fix mirrorlist handling
o fix fallback on hdlist when xml-info not found
diff --git a/urpmq b/urpmq
index 4f53dcd4..7a2bc10b 100755
--- a/urpmq
+++ b/urpmq
@@ -203,6 +203,7 @@ if ($options{list_aliases}) {
}
exit 0;
} elsif ($options{list}) {
+ !@names && !@src_names or $urpm->{fatal}(1, N("use -l to list files"));
# --list lists all available packages: select them all
@{$state->{selected}}{0 .. $#{$urpm->{depslist}}} = ();
} else {