summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-27 11:10:04 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-27 11:10:04 +0000
commita2e352a80301a243c139f50b75a5bdfcafd86ad9 (patch)
treef39ba5c4303d4ce6d1579e65561d0e73cb7ff1d3 /urpmq
parentde30d10b40a5db24883762c45897bd9d8d3fb9b9 (diff)
downloadurpmi-a2e352a80301a243c139f50b75a5bdfcafd86ad9.tar
urpmi-a2e352a80301a243c139f50b75a5bdfcafd86ad9.tar.gz
urpmi-a2e352a80301a243c139f50b75a5bdfcafd86ad9.tar.bz2
urpmi-a2e352a80301a243c139f50b75a5bdfcafd86ad9.tar.xz
urpmi-a2e352a80301a243c139f50b75a5bdfcafd86ad9.zip
Patch by Guillaume Rousse to improve bash-completion for media names, via
adding new optional arguments to the --list-media option of urpmq.
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq2
1 files changed, 2 insertions, 0 deletions
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;