Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #60 from rodo/master

Check missing unzip binary
  • Loading branch information...
commit 85c92e027add313a74f9eacbf01aa99fe3c35be9 2 parents 6b6b836 + 09e2710
@astraw authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 stdeb/util.py
View
6 stdeb/util.py
@@ -419,7 +419,11 @@ def expand_tarball(tarball_fname,cwd=None):
def expand_zip(zip_fname,cwd=None):
"expand a zip"
- args = ['/usr/bin/unzip',zip_fname]
+ unzip_path = '/usr/bin/unzip'
+ if not os.path.exists(unzip_path):
+ log.error('ERROR: {} does not exist'.format(unzip_path))
+ sys.exit(1)
+ args = [unzip_path, zip_fname]
# Does it have a top dir
res = subprocess.Popen(
[args[0], '-l', args[1]], cwd=cwd,
Please sign in to comment.
Something went wrong with that request. Please try again.