summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq1
1 files changed, 1 insertions, 0 deletions
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 {