debian/lib/python/debian_linux/patches.py: Fix error check.

svn path=/dists/trunk/linux-2.6/; revision=9528
This commit is contained in:
Bastian Blank 2007-09-15 20:44:05 +00:00
parent 5ed1e8b54d
commit d6d1f34227
1 changed files with 2 additions and 0 deletions

View File

@ -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()