diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-10 03:21:41 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-10 03:21:41 +0000 |
commit | 4584ce5e29092d67ae718229d4a91b04de5ddca9 (patch) | |
tree | 1675e3ee91780bf84ccf0ad3c42f759ee9accfbe /urpmq | |
parent | f9e31f967d253a63665e1e033b06e9924cb3d5f2 (diff) | |
download | urpmi-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-x | urpmq | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}"; |