diff options
Diffstat (limited to 'perl-install/commands.pm')
-rw-r--r-- | perl-install/commands.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/commands.pm b/perl-install/commands.pm index 46246aa2b..5e5cb3d03 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -427,7 +427,12 @@ sub insmod { $f = "/tmp/$_.o"; my $cz = "/lib/modules" . (arch() eq 'sparc64' && "64") . ".cz"; -e $cz or $cz .= "2"; if (-e $cz) { - run_program::run("packdrake -x $cz /tmp $_.o"); + eval { + require packdrake; + my $packer = new packdrake($cz); + $packer->extract_archive("/tmp", "$_.o"); + }; + #run_program::run("packdrake -x $cz /tmp $_.o"); } elsif (-e "/lib/modules.cpio.bz2") { run_program::run("cd /tmp ; bzip2 -cd /lib/modules.cpio.bz2 | cpio -i $_.o"); } else { |