summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-10 03:21:41 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-10 03:21:41 +0000
commit4584ce5e29092d67ae718229d4a91b04de5ddca9 (patch)
tree1675e3ee91780bf84ccf0ad3c42f759ee9accfbe /urpmq
parentf9e31f967d253a63665e1e033b06e9924cb3d5f2 (diff)
downloadurpmi-4584ce5e29092d67ae718229d4a91b04de5ddca9.tar
urpmi-4584ce5e29092d67ae718229d4a91b04de5ddca9.tar.gz
urpmi-4584ce5e29092d67ae718229d4a91b04de5ddca9.tar.bz2
urpmi-4584ce5e29092d67ae718229d4a91b04de5ddca9.tar.xz
urpmi-4584ce5e29092d67ae718229d4a91b04de5ddca9.zip
Extract headers only once
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmq b/urpmq
index da12eded..51f42a46 100755
--- a/urpmq
+++ b/urpmq
@@ -340,13 +340,14 @@ if ($urpm::args::options{list_aliases}) {
my @selected = map { split /\|/ } keys %{$state->{selected}};
foreach (0..$#{$urpm->{media} || []}) {
if ($urpm->{media}[$_]{synthesis}) {
- $urpm->{log}->(N("skipping media %s: no hdlist\n", $urpm->{media}[$_]{name}));
+ $urpm->{log}->(N("skipping media %s: no hdlist", $urpm->{media}[$_]{name}));
next;
}
if (my @headers = (grep { ! -s "$urpm->{cachedir}/headers/$_" }
map { my $pkg = $urpm->{depslist}[$_];
$pkg && $pkg->header_filename } @selected))
{
+ my %h = map { $_ => 1 } @headers; @headers = keys %h;
my $hdlist_path = $urpm->{media}[$_]{virtual}
? ("$urpm->{media}[$_]{url}/$urpm->{media}[$_]{with_hdlist}" =~ m!^(?:file:/*)?(/[^/].*)!)[0]
: "$urpm->{statedir}/$urpm->{media}[$_]{hdlist}";