summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xurpmq3
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8fc717a8..cdd1ee4a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- don't cache media.cfg from the media when using a virtual one (ie a medium
for which we don't want to cache metadata)
+- ignore gpg_pubkey packages in urpmq --not-available
Version 6.32 - 29 October 2009
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 {