diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-27 17:15:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-27 17:15:17 +0000 |
commit | a441548be2953fd682ab72dc3a644ef1567a26a4 (patch) | |
tree | a8296b6e22b7ccee8ebe2c372cd53472114e7d53 /urpmq | |
parent | 0885712b66919403aab9ccd95d27b095deee34c1 (diff) | |
download | urpmi-a441548be2953fd682ab72dc3a644ef1567a26a4.tar urpmi-a441548be2953fd682ab72dc3a644ef1567a26a4.tar.gz urpmi-a441548be2953fd682ab72dc3a644ef1567a26a4.tar.bz2 urpmi-a441548be2953fd682ab72dc3a644ef1567a26a4.tar.xz urpmi-a441548be2953fd682ab72dc3a644ef1567a26a4.zip |
(urpmq --not-available) do not reinvent (slower) ->fullname
introduced by cfergeau in 262492 on Oct 21 2009:
add --not-available option to urpmq
Patch from Pascal Terjan, fixes bug #51418
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -253,17 +253,13 @@ if ($options{list_aliases}) { } } elsif ($options{not_available}) { my %available; - my $to_string = sub { - my ($p) = @_; - $p->name . '-' . $p->version . '-' . $p->release . '.' . $p->arch - }; foreach my $p (@{$urpm->{depslist}}) { - $available{$to_string->($p)} = 1; + $available{$p->fullname} = 1; } my $db = urpm::db_open_or_die_($urpm); $db->traverse(sub { my ($p) = @_; - my $s = $to_string->($p); + my $s = $p->fullname; # FIXME Use $pkg_to_string if some options are set but default to this format ? # Magical packages like gpg-pubkey do not have arch and we do not want them $available{$s} || !$p->arch || print "$s\n"; |