mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
xorg: adjust generator to work with other archive types
In the end I didn't utilize it, but it shouldn't hurt.
This commit is contained in:
parent
b6059b2c6a
commit
2755d2b241
|
@ -61,7 +61,7 @@ while (<>) {
|
|||
#next unless $pkg eq "xcbutil";
|
||||
}
|
||||
|
||||
$tarball =~ /\/([^\/]*)\.tar\.bz2$/;
|
||||
$tarball =~ /\/([^\/]*)\.tar\.(bz2|gz|xz)$/;
|
||||
my $pkgName = $1;
|
||||
|
||||
print " $pkg $pkgName\n";
|
||||
|
@ -82,7 +82,7 @@ while (<>) {
|
|||
print "\nunpacking $path\n";
|
||||
system "rm -rf '$tmpDir'";
|
||||
mkdir $tmpDir, 0700;
|
||||
system "cd '$tmpDir' && tar xfj '$path'";
|
||||
system "cd '$tmpDir' && tar xf '$path'";
|
||||
die "cannot unpack `$path'" if $? != 0;
|
||||
print "\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue