debian/bin/genorig.py: Check both return values of git export.

svn path=/dists/trunk/linux-tools/; revision=18159
This commit is contained in:
Bastian Blank 2011-10-07 20:20:47 +00:00
parent e9b13d76bc
commit 93d7cd4b8c
1 changed files with 4 additions and 2 deletions

View File

@ -94,8 +94,10 @@ class Main(object):
extract_proc = subprocess.Popen(['tar', '-xf', '-'], cwd=self.dir,
stdin=archive_proc.stdout)
if extract_proc.wait():
raise RuntimeError("Can't extract tarball")
ret1 = archive_proc.wait()
ret2 = extract_proc.wait()
if ret1 or ret2:
raise RuntimeError("Can't create archive")
def upstream_extract(self, input_tar):
self.log("Extracting tarball %s\n" % input_tar)