1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

- minor fix

This commit is contained in:
Marcus Hüwe 2009-03-19 18:25:59 +00:00
parent 6bf55c5415
commit 9d97bcb56d

View File

@ -115,7 +115,8 @@ class Cpio():
if not stat.S_ISREG(stat.S_IFMT(hdr.mode)):
msg = '\'%s\' is no regular file - only regular files are supported atm' % hdr.filename
raise NotImplementedError(msg)
f = open(os.path.join(dest, fn), 'wb')
fn = os.path.join(dest, fn)
f = open(fn, 'wb')
self.__file.seek(hdr.dataoff, os.SEEK_SET)
f.write(self.__file.read(hdr.filesize))
f.close()