Skip to content

Commit

Permalink
fix data.tar hack
Browse files Browse the repository at this point in the history
  • Loading branch information
vitlav committed Aug 6, 2017
1 parent 152b721 commit 9f3b62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alien-data-tar.patch
Expand Up @@ -7,7 +7,7 @@ index bf09058..0141264 100644
else {
@filelist=map { chomp; s:\./::; "/$_" }
- $this->runpipe(0, "ar -p '$file' data.tar.gz | gzip -dc | tar tf -");
+ $this->runpipe(0, "( ar -p '$file' data.tar.gz | gzip -dc || ar -p '$file' data.tar.xz | xzcat ) | tar tf -");
+ $this->runpipe(0, "ar -p '$file' data.tar.gz | gzip -dc | tar tf - || ar -p '$file' data.tar.xz | xzcat | tar tf -");
}
$this->filelist(\@filelist);

Expand All @@ -16,7 +16,7 @@ index bf09058..0141264 100644
}
else {
- $this->do("ar -p $file data.tar.gz | gzip -dc | (cd ".$this->unpacked_tree."; tar xpf -)")
+ $this->do("( ar -p $file data.tar.gz | gzip -dc || ar -p '$file' data.tar.xz | xzcat ) | (cd ".$this->unpacked_tree."; tar xpf -)")
+ $this->do("ar -p $file data.tar.gz | gzip -dc | (cd ".$this->unpacked_tree."; tar xpf -) || ar -p '$file' data.tar.xz | xzcat | (cd ".$this->unpacked_tree."; tar xpf -)")
or die "Unpacking of '$file' failed: $!";
}

0 comments on commit 9f3b62e

Please sign in to comment.