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:
parent
589be322cf
commit
23aa9b4f2c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue