[jhbuild] utils: use gzip rather than gunzip (GNOME bug 658361)
- From: Craig Keogh <cskeogh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] utils: use gzip rather than gunzip (GNOME bug 658361)
- Date: Wed, 7 Sep 2011 12:11:08 +0000 (UTC)
commit b89fd7109e5f1c5de8e5f5e74cf9cd2b59c9db77
Author: Craig Keogh <cskeogh adam com au>
Date: Wed Sep 7 21:37:54 2011 +0930
utils: use gzip rather than gunzip (GNOME bug 658361)
jhbuild/utils/unpack.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/utils/unpack.py b/jhbuild/utils/unpack.py
index be5567b..388c199 100644
--- a/jhbuild/utils/unpack.py
+++ b/jhbuild/utils/unpack.py
@@ -128,8 +128,8 @@ def unpack_archive(buildscript, localfile, target_directory, checkoutdir=None):
elif ext == '.bz2' and has_command('bunzip2') and has_command('tar'):
buildscript.execute('bunzip2 -dc "%s" | tar xf -' % localfile,
cwd=target_directory)
- elif ext in ('.gz', '.tgz') and has_command('gunzip') and has_command('tar'):
- buildscript.execute('gunzip -dc "%s" | tar xf -' % localfile,
+ elif ext in ('.gz', '.tgz') and has_command('gzip') and has_command('tar'):
+ buildscript.execute('gzip -dc "%s" | tar xf -' % localfile,
cwd=target_directory)
elif ext == '.zip' and has_command('unzip'):
buildscript.execute('unzip "%s"' % localfile,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]