debian/lib/python/debian_linux/patches.py: Fix error check.
svn path=/dists/trunk/linux-2.6/; revision=9528
This commit is contained in:
parent
5ed1e8b54d
commit
d6d1f34227
|
@ -83,6 +83,8 @@ class SubOperationFilesUnifdef(SubOperation):
|
|||
ret = f.close()
|
||||
if ret is None:
|
||||
raise RuntimeError("unifdef of %s removed nothing" % self.name)
|
||||
elif ret != 256:
|
||||
raise RuntimeError("unifdef failed")
|
||||
f1 = file(filename, 'wb')
|
||||
f1.write(data)
|
||||
f1.close()
|
||||
|
|
Loading…
Reference in New Issue