From 5ca8baed3da1a4393caa36a9200b566100ce0f2f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 14 Feb 2007 13:10:37 +0000 Subject: add option "-m" in usage (was already documented in manpage) --- urpmq | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'urpmq') diff --git a/urpmq b/urpmq index 50f9efa5..b853f579 100755 --- a/urpmq +++ b/urpmq @@ -94,6 +94,7 @@ usage: ") . N(" -g - print groups with name also. ") . N(" -i - print useful information in human readable form. ") . N(" -l - list files in package. +") . N(" -m - equivalent to -du ") . N(" -p - search in provides to find package. ") . N(" -r - print version and release with name also. ") . N(" -s - next package is a source package (same as --src). @@ -277,14 +278,11 @@ if ($urpm::args::options{list_aliases}) { exists $state->{selected}{$pkg->id} and next; $state->{selected}{$pkg->id} = undef; + next if !$requested{$dep} && !$urpm::args::options{what_requires_recursive}; + #- for all provides of package, look up what is requiring them. foreach ($pkg->provides) { if (my ($n, $s) = /^([^\s\[]*)(?:\[\*\])?\[?([^\s\]]*\s*[^\s\]]*)/) { - #- NOTE. if the "provides" has no version specification, we happily - #- assume that it can be skipped, because it most probably refers - #- to a virtual package. - next if $s eq '' && !$urpm::args::options{what_requires_recursive}; - if (keys %{$urpm->{provides}{$n}} > 1) { #- If more than one thing provides this requirement #- then don't bother finding stuff -- cgit v1.2.1