diff options
author | Francois Pons <fpons@mandriva.com> | 2001-01-05 12:00:47 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-01-05 12:00:47 +0000 |
commit | 1113f1a9304ef42586921f77e0eada2db25b19ea (patch) | |
tree | f2e1308133831833203749448a0a41c3bc5ca475 /perl-install/modules.pm | |
parent | 9ced370887c609cd221b798dc871dec78e8d3ee8 (diff) | |
download | drakx-1113f1a9304ef42586921f77e0eada2db25b19ea.tar drakx-1113f1a9304ef42586921f77e0eada2db25b19ea.tar.gz drakx-1113f1a9304ef42586921f77e0eada2db25b19ea.tar.bz2 drakx-1113f1a9304ef42586921f77e0eada2db25b19ea.tar.xz drakx-1113f1a9304ef42586921f77e0eada2db25b19ea.zip |
removed need of packdrake binary
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r-- | perl-install/modules.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index bc698a5a2..74dc12074 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -470,7 +470,12 @@ sub unload { sub load_raw { my @l = map { my ($i, @i) = @$_; [ $i, \@i ] } grep { $_->[0] !~ /ignore/ } @_; my $cz = "/lib/modules" . (arch() eq 'sparc64' && "64") . ".cz"; -e $cz or $cz .= "2"; - run_program::run("packdrake", "-x", $cz, "/tmp", map { "$_->[0].o" } @l); + eval { + require packdrake; + my $packer = new packdrake($cz); + $packer->extract_archive("/tmp", map { "$_->[0].o" } @l); + }; + #run_program::run("packdrake", "-x", $cz, "/tmp", map { "$_->[0].o" } @l); my @failed = grep { my $m = "/tmp/$_->[0].o"; if (-e $m && run_program::run(["insmod_", "insmod"], '2>', '/dev/tty5', '-f', $m, @{$_->[1]})) { |