diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-24 22:15:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-24 22:15:55 +0000 |
commit | 80f1640e8c8de7103580360e0e431e38cf72f60d (patch) | |
tree | 2c5b65fbd3fceb736147bedea91e2b2033ef706e | |
parent | cd57a406165128e71e1db0fc4492ae062dd3ccd6 (diff) | |
download | rpmdrake-80f1640e8c8de7103580360e0e431e38cf72f60d.tar rpmdrake-80f1640e8c8de7103580360e0e431e38cf72f60d.tar.gz rpmdrake-80f1640e8c8de7103580360e0e431e38cf72f60d.tar.bz2 rpmdrake-80f1640e8c8de7103580360e0e431e38cf72f60d.tar.xz rpmdrake-80f1640e8c8de7103580360e0e431e38cf72f60d.zip |
(extract_header) use more modern API (MDV::Packdrakeng instead of packdrake)
-rwxr-xr-x | rpmdrake | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -471,9 +471,8 @@ sub extract_header { $hdlist =~ s!^file:/+!!; if (-r $hdlist) { my $packer; - # TODO use more modern API - eval { require packdrake; $packer = new packdrake($hdlist, quiet => 1) } - or do { + require MDV::Packdrakeng; + eval { $packer = MDV::Packdrakeng->open (archive => $hdlist, quit => 1) } or do { warn "Warning, hdlist seems corrupted\n"; goto header_non_available; }; @@ -487,7 +486,7 @@ sub extract_header { warn "Warning, could not extract header!"; goto header_non_available; }; - $packer->extract_archive($headersdir, $p->header_filename); + $packer->extract($headersdir, $p->header_filename); $p->update_header("$headersdir/" . $p->header_filename) or do { warn "Warning, could not extract header!"; goto header_non_available; |