From 93d7cd4b8c0c74f1b6263573757ca88cec5ae87a Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Fri, 7 Oct 2011 20:20:47 +0000 Subject: [PATCH] debian/bin/genorig.py: Check both return values of git export. svn path=/dists/trunk/linux-tools/; revision=18159 --- debian/bin/genorig.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py index 5bcd0b6f0..d00dbd361 100755 --- a/debian/bin/genorig.py +++ b/debian/bin/genorig.py @@ -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)