diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-02 16:49:55 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-02 16:49:55 +0000 |
commit | b3369bf1b86ef6ccedd73cedf1f8f4c52a19caf4 (patch) | |
tree | cde1f086c3541dc37e0e09a096b01c9be3bea78e /urpmq | |
parent | baabd04d3ba7a4f73bf297d01b7d0820a1f2bde9 (diff) | |
download | urpmi-b3369bf1b86ef6ccedd73cedf1f8f4c52a19caf4.tar urpmi-b3369bf1b86ef6ccedd73cedf1f8f4c52a19caf4.tar.gz urpmi-b3369bf1b86ef6ccedd73cedf1f8f4c52a19caf4.tar.bz2 urpmi-b3369bf1b86ef6ccedd73cedf1f8f4c52a19caf4.tar.xz urpmi-b3369bf1b86ef6ccedd73cedf1f8f4c52a19caf4.zip |
Use MDV::Packdrakeng instead of deprecated wrapper
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -316,14 +316,16 @@ if ($urpm::args::options{list_aliases}) { @headers > 0 or next; if (-s "$urpm->{statedir}/$urpm->{media}[$_]{hdlist}") { - require packdrake; - my $packer = new packdrake( - $urpm->{media}[$_]{virtual} + require MDV::Packdrakeng; + my $packer = MDV::Packdrakeng->new( + archive => ( + $urpm->{media}[$_]{virtual} ? ("$urpm->{media}[$_]{url}/$urpm->{media}[$_]{with_hdlist}" =~ m!^(?:file:/*)?(/[^/].*)!)[0] : "$urpm->{statedir}/$urpm->{media}[$_]{hdlist}", + ), quiet => 1, ); - $packer->extract_archive(undef, @headers); + $packer->extract(undef, @headers); } else { #- fallback to retrieve rpm package before, so that --headers will be ok. my %downloads = $urpm->download_source_packages({}, $list, force_local => 1); @@ -353,9 +355,9 @@ if ($urpm::args::options{list_aliases}) { ? ("$urpm->{media}[$_]{url}/$urpm->{media}[$_]{with_hdlist}" =~ m!^(?:file:/*)?(/[^/].*)!)[0] : "$urpm->{statedir}/$urpm->{media}[$_]{hdlist}"; if (-s $hdlist_path) { - require packdrake; - my $packer = new packdrake($hdlist_path, quiet => 1); - $packer->extract_archive($tmp_header_dir, @headers); + require MDV::Packdrakeng; + my $packer = MDV::Packdrakeng->new(archive => $hdlist_path, quiet => 1); + $packer->extract($tmp_header_dir, @headers); } elsif (!%downloads) { #- fallback to retrieve rpm package before, so that --headers will be ok. %downloads = $urpm->download_source_packages({}, $list, force_local => 1); |