diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-11-18 13:22:36 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-11-18 13:22:36 +0000 |
commit | ee22552a694e1db48ba203fcd53752516e797966 (patch) | |
tree | 60f521d6b42db69e4d0ac4951175c8d0e309c101 /urpmq | |
parent | 1414ea6e79e94d943aeaeb2432c75a591fd61f4d (diff) | |
download | urpmi-ee22552a694e1db48ba203fcd53752516e797966.tar urpmi-ee22552a694e1db48ba203fcd53752516e797966.tar.gz urpmi-ee22552a694e1db48ba203fcd53752516e797966.tar.bz2 urpmi-ee22552a694e1db48ba203fcd53752516e797966.tar.xz urpmi-ee22552a694e1db48ba203fcd53752516e797966.zip |
Exclude gpg-pubkey from missing packages, not available ones
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -258,15 +258,15 @@ if ($options{list_aliases}) { $p->name . '-' . $p->version . '-' . $p->release . '.' . $p->arch }; foreach my $p (@{$urpm->{depslist}}) { - # Magical packages like gpg-pubkey do not have arch and we do not want them - $available{$to_string->($p)} = 1 if $p->arch; + $available{$to_string->($p)} = 1; } my $db = urpm::db_open_or_die_($urpm); $db->traverse(sub { my ($p) = @_; my $s = $to_string->($p); # FIXME Use $pkg_to_string if some options are set but default to this format ? - $available{$s} || print "$s\n"; + # Magical packages like gpg-pubkey do not have arch and we do not want them + $available{$s} || !$p->arch || print "$s\n"; }); } else { %requested = $urpm->register_rpms(@files); |