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

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


Author: waldi
Date: Tue Apr 10 13:39:56 2007
New Revision: 8455

Modified:
   dists/trunk/linux-2.6/debian/bin/genorig.py
Log:
debian/bin/genorig.py
- Fix detection of uncompressed patch files.
- Create output directory.


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:39:56 2007
@@ -47,7 +47,7 @@
         if self.input_patch is None:
             return
         self.log("Patching source with %s\n" % self.input_patch)
-        match = re.match(r'(^|.*/)(patch-\d+\.\d+\.\d+(-\S+)?(\.(?P<extension>(bz2|gz))))?$', self.input_patch)
+        match = re.match(r'(^|.*/)patch-\d+\.\d+\.\d+(-\S+?)?(\.(?P<extension>(bz2|gz)))?$', self.input_patch)
         if not match:
             raise RuntimeError("Can't identify name of patch")
         cmdline = []
@@ -64,6 +64,7 @@
 
     def tar(self):
         out = os.path.join("../orig", self.orig_tar)
+        os.mkdir("../orig")
         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