summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-11-18 13:04:55 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-11-18 13:04:55 +0000
commit1414ea6e79e94d943aeaeb2432c75a591fd61f4d (patch)
treed9960699dc23ef6e9588b74a7b911d5b307045b3 /urpmq
parentae46f6a21b8676b81c78290f182551f257c285a7 (diff)
downloadurpmi-1414ea6e79e94d943aeaeb2432c75a591fd61f4d.tar
urpmi-1414ea6e79e94d943aeaeb2432c75a591fd61f4d.tar.gz
urpmi-1414ea6e79e94d943aeaeb2432c75a591fd61f4d.tar.bz2
urpmi-1414ea6e79e94d943aeaeb2432c75a591fd61f4d.tar.xz
urpmi-1414ea6e79e94d943aeaeb2432c75a591fd61f4d.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 {