mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 07:26:15 +01:00
- minor fix
This commit is contained in:
parent
6bf55c5415
commit
9d97bcb56d
@ -115,7 +115,8 @@ class Cpio():
|
|||||||
if not stat.S_ISREG(stat.S_IFMT(hdr.mode)):
|
if not stat.S_ISREG(stat.S_IFMT(hdr.mode)):
|
||||||
msg = '\'%s\' is no regular file - only regular files are supported atm' % hdr.filename
|
msg = '\'%s\' is no regular file - only regular files are supported atm' % hdr.filename
|
||||||
raise NotImplementedError(msg)
|
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)
|
self.__file.seek(hdr.dataoff, os.SEEK_SET)
|
||||||
f.write(self.__file.read(hdr.filesize))
|
f.write(self.__file.read(hdr.filesize))
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user