summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-11-18 13:22:36 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-11-18 13:22:36 +0000
commitee22552a694e1db48ba203fcd53752516e797966 (patch)
tree60f521d6b42db69e4d0ac4951175c8d0e309c101 /urpmq
parent1414ea6e79e94d943aeaeb2432c75a591fd61f4d (diff)
downloadurpmi-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-xurpmq6
1 files 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);