summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-20 19:12:44 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-20 19:12:44 +0000
commit232627e4ab2e268a0cb80947e2884f7afcedb869 (patch)
tree7cf36d85a8a31db8f50ea83d4ecce277772126d1 /perl-install/modules.pm
parent2a9c08b4787471dd50d7bbc63b1abb415d0bc790 (diff)
downloaddrakx-232627e4ab2e268a0cb80947e2884f7afcedb869.tar
drakx-232627e4ab2e268a0cb80947e2884f7afcedb869.tar.gz
drakx-232627e4ab2e268a0cb80947e2884f7afcedb869.tar.bz2
drakx-232627e4ab2e268a0cb80947e2884f7afcedb869.tar.xz
drakx-232627e4ab2e268a0cb80947e2884f7afcedb869.zip
(extract_modules) enable to find, decompress XZ modules
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 719ec02f3..53f70b055 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -319,7 +319,8 @@ sub extract_modules {
my $f = $modname . module_extension();
if (-e $path) {
system("gzip -dc $path > $dir/$f") == 0
- or unlink "$dir/$f";
+ or system("xz -d < $path > $dir/$f") == 0
+ or unlink "$dir/$f";
} else {
log::l("warning: unable to get module filename for $modname (path: $path)");
}