From ee22552a694e1db48ba203fcd53752516e797966 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 18 Nov 2009 13:22:36 +0000 Subject: Exclude gpg-pubkey from missing packages, not available ones --- urpmq | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/urpmq b/urpmq index 3d408a5a..166eb9d6 100755 --- a/urpmq +++ b/urpmq @@ -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); -- cgit v1.2.1