[kernel] r19887 - dists/trunk/linux/debian/bin

Ben Hutchings benh at alioth.debian.org
Sat Mar 2 16:06:10 UTC 2013


Author: benh
Date: Sat Mar  2 16:06:09 2013
New Revision: 19887

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

Modified:
   dists/trunk/linux/debian/bin/genorig.py

Modified: dists/trunk/linux/debian/bin/genorig.py
==============================================================================
--- dists/trunk/linux/debian/bin/genorig.py	Sat Mar  2 16:04:15 2013	(r19886)
+++ dists/trunk/linux/debian/bin/genorig.py	Sat Mar  2 16:06:09 2013	(r19887)
@@ -61,8 +61,10 @@
         extract_proc = subprocess.Popen(['tar', '-xaf', '-'], 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)



More information about the Kernel-svn-changes mailing list