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

Martin Michlmayr tbm at costa.debian.org
Thu Jan 26 15:49:44 UTC 2006


Author: tbm
Date: Thu Jan 26 15:49:43 2006
New Revision: 5601

Modified:
   dists/trunk/linux-2.6/debian/bin/apply.py
Log:
print a better error message when a malformed line in a series file is
found


Modified: dists/trunk/linux-2.6/debian/bin/apply.py
==============================================================================
--- dists/trunk/linux-2.6/debian/bin/apply.py	(original)
+++ dists/trunk/linux-2.6/debian/bin/apply.py	Thu Jan 26 15:49:43 2006
@@ -24,7 +24,10 @@
                 continue
 
             items = line.split(' ')
-            operation, patch = items
+            if len(items) != 2:
+                raise RuntimeError, "Line '%s' in file %s malformed." % (line, filename)
+            else:
+                operation, patch = items
 
             if operation in ('+', '-'):
                 patchfile = os.path.join(home, patch)



More information about the Kernel-svn-changes mailing list