debian/bin/genorig.py: Check both return values of git export.
svn path=/dists/trunk/linux-tools/; revision=18159
This commit is contained in:
parent
e9b13d76bc
commit
93d7cd4b8c
|
@ -94,8 +94,10 @@ class Main(object):
|
||||||
extract_proc = subprocess.Popen(['tar', '-xf', '-'], cwd=self.dir,
|
extract_proc = subprocess.Popen(['tar', '-xf', '-'], cwd=self.dir,
|
||||||
stdin=archive_proc.stdout)
|
stdin=archive_proc.stdout)
|
||||||
|
|
||||||
if extract_proc.wait():
|
ret1 = archive_proc.wait()
|
||||||
raise RuntimeError("Can't extract tarball")
|
ret2 = extract_proc.wait()
|
||||||
|
if ret1 or ret2:
|
||||||
|
raise RuntimeError("Can't create archive")
|
||||||
|
|
||||||
def upstream_extract(self, input_tar):
|
def upstream_extract(self, input_tar):
|
||||||
self.log("Extracting tarball %s\n" % input_tar)
|
self.log("Extracting tarball %s\n" % input_tar)
|
||||||
|
|
Loading…
Reference in New Issue