diff options
author | Francois Pons <fpons@mandriva.com> | 2001-11-16 14:04:07 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-11-16 14:04:07 +0000 |
commit | 98abfd8a4d784ede07c3d7f9aa1048006f4a206e (patch) | |
tree | 67e3d76738afe4c2852c93b650b4cf8fbe374c6d /urpmq | |
parent | bf62133b9f73f44e20459628a6b448b9288cebab (diff) | |
download | urpmi-98abfd8a4d784ede07c3d7f9aa1048006f4a206e.tar urpmi-98abfd8a4d784ede07c3d7f9aa1048006f4a206e.tar.gz urpmi-98abfd8a4d784ede07c3d7f9aa1048006f4a206e.tar.bz2 urpmi-98abfd8a4d784ede07c3d7f9aa1048006f4a206e.tar.xz urpmi-98abfd8a4d784ede07c3d7f9aa1048006f4a206e.zip |
added /etc/urpmi/inst.list support.
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -154,12 +154,12 @@ if ($query->{headers} || $query->{sources}) { if ($query->{headers}) { #- now examine source package to build headers list to extract. - @$local_sources and system 'rpm2header', @$local_sources; + values %$local_sources and system 'rpm2header', values %$local_sources; foreach (0..$#{$urpm->{media} || []}) { my @headers = (grep { my $file = "$urpm->{cachedir}/headers/$_"; -s $file and system 'cat', $file; ! -s $file } - map { /(.*)\/([^\/]*)-([^-]*)-([^-]*)\.([^\.]*)\.rpm/ and "$2-$3-$4.$5" } @{$list->[$_]}); + map { /(.*)\/([^\/]*)-([^-]*)-([^-]*)\.([^\.]*)\.rpm/ and "$2-$3-$4.$5" } values %{$list->[$_]}); @headers > 0 or next; require packdrake; @@ -167,9 +167,9 @@ if ($query->{headers} || $query->{sources}) { $packer->extract_archive(undef, @headers); } } else { - print join "\n", @$local_sources; @$local_sources and print "\n"; + print join "\n", values %$local_sources; values %$local_sources and print "\n"; foreach (0..$#{$urpm->{media} || []}) { - print join "\n", @{$list->[$_]}; @{$list->[$_]} and print "\n"; + print join "\n", values %{$list->[$_]}; values %{$list->[$_]} and print "\n"; } } exit 0; |