Skip to content

Commit

Permalink
Merge pull request #1889 from sebth/develop
Browse files Browse the repository at this point in the history
Target correct path when using bunzip2
  • Loading branch information
boegel committed Aug 26, 2016
2 parents 1b356d5 + 5f64f6f commit 87329a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion easybuild/tools/filetools.py
Expand Up @@ -559,7 +559,7 @@ def extract_cmd(filepath, overwrite=False):
'.tar.gz': "tar xzf %(filepath)s",
'.tgz': "tar xzf %(filepath)s",
# bzipped or bzipped tarball
'.bz2': "bunzip2 %(filepath)s",
'.bz2': "bunzip2 -c %(filepath)s > %(target)s",
'.tar.bz2': "tar xjf %(filepath)s",
'.tb2': "tar xjf %(filepath)s",
'.tbz': "tar xjf %(filepath)s",
Expand Down
3 changes: 2 additions & 1 deletion test/framework/filetools.py
Expand Up @@ -65,7 +65,8 @@ def test_extract_cmd(self):
('test.TAR.GZ', "tar xzf test.TAR.GZ"),
('test.tgz', "tar xzf test.tgz"),
('test.gtgz', "tar xzf test.gtgz"),
('test.bz2', "bunzip2 test.bz2"),
('test.bz2', "bunzip2 -c test.bz2 > test"),
('/some/path/test.bz2', "bunzip2 -c /some/path/test.bz2 > test"),
('test.tbz', "tar xjf test.tbz"),
('test.tbz2', "tar xjf test.tbz2"),
('test.tb2', "tar xjf test.tb2"),
Expand Down

0 comments on commit 87329a7

Please sign in to comment.