print a better error message when a malformed line in a series file is

found

svn path=/dists/trunk/linux-2.6/; revision=5601
This commit is contained in:
Martin Michlmayr 2006-01-26 15:49:43 +00:00
parent 589be322cf
commit 23aa9b4f2c
1 changed files with 4 additions and 1 deletions

5
debian/bin/apply.py vendored
View File

@ -24,7 +24,10 @@ class series(list):
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)