[kernel] r8456 - dists/trunk/linux-2.6/debian/bin

Bastian Blank waldi at alioth.debian.org
Tue Apr 10 13:43:10 UTC 2007


Author: waldi
Date: Tue Apr 10 13:43:10 2007
New Revision: 8456

Modified:
   dists/trunk/linux-2.6/debian/bin/genorig.py
Log:
debian/bin/genorig.py: Ignore errors in output directory creation.


Modified: dists/trunk/linux-2.6/debian/bin/genorig.py
==============================================================================
--- dists/trunk/linux-2.6/debian/bin/genorig.py	(original)
+++ dists/trunk/linux-2.6/debian/bin/genorig.py	Tue Apr 10 13:43:10 2007
@@ -64,7 +64,9 @@
 
     def tar(self):
         out = os.path.join("../orig", self.orig_tar)
-        os.mkdir("../orig")
+        try:
+            os.mkdir("../orig")
+        except OSError: pass
         self.log("Generate tarball %s\n" % out)
         cmdline = ['tar -czf', out, '-C', self.dir, self.orig]
         if os.spawnv(os.P_WAIT, '/bin/sh', ['sh', '-c', ' '.join(cmdline)]):



More information about the Kernel-svn-changes mailing list