From a2e352a80301a243c139f50b75a5bdfcafd86ad9 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 27 Jan 2005 11:10:04 +0000 Subject: Patch by Guillaume Rousse to improve bash-completion for media names, via adding new optional arguments to the --list-media option of urpmq. --- urpmq | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpmq') diff --git a/urpmq b/urpmq index 00c66c75..5d9eb540 100755 --- a/urpmq +++ b/urpmq @@ -158,6 +158,8 @@ if ($urpm::args::options{list_aliases}) { exit 0; } elsif ($urpm::args::options{list_media} || $urpm::args::options{list_url}) { foreach (@{$urpm->{media}}) { + next if $urpm::args::options{list_media} eq 'update' and ! $_->{update}; + next if $urpm::args::options{list_media} eq 'active' and $_->{ignore}; print $_->{name} . ($urpm::args::options{list_url} ? " $_->{url}" : "") . "\n"; } exit 0; -- cgit v1.2.1