summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:16:21 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:16:21 +0000
commitb70096650be33a553380c819d8dd5822eb024dcf (patch)
treed9960699dc23ef6e9588b74a7b911d5b307045b3 /urpmq
parent4c33c95c7a9d64db6f915a66290dda91cb56e341 (diff)
downloadurpmi-b70096650be33a553380c819d8dd5822eb024dcf.tar
urpmi-b70096650be33a553380c819d8dd5822eb024dcf.tar.gz
urpmi-b70096650be33a553380c819d8dd5822eb024dcf.tar.bz2
urpmi-b70096650be33a553380c819d8dd5822eb024dcf.tar.xz
urpmi-b70096650be33a553380c819d8dd5822eb024dcf.zip
ignore gpg_pubkey packages in urpmq --not-available
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmq b/urpmq
index bed74dbd..3d408a5a 100755
--- a/urpmq
+++ b/urpmq
@@ -258,7 +258,8 @@ if ($options{list_aliases}) {
$p->name . '-' . $p->version . '-' . $p->release . '.' . $p->arch
};
foreach my $p (@{$urpm->{depslist}}) {
- $available{$to_string->($p)} = 1;
+ # Magical packages like gpg-pubkey do not have arch and we do not want them
+ $available{$to_string->($p)} = 1 if $p->arch;
}
my $db = urpm::db_open_or_die_($urpm);
$db->traverse(sub {