From 1126918af32ca283ba5ef37dd9a189c2abc011c9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 25 Feb 2008 14:34:30 +0000 Subject: make "urpmq --list xxx" display "use -l to list files" and exit on error --- urpmq | 1 + 1 file changed, 1 insertion(+) (limited to 'urpmq') 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 { -- cgit v1.2.1