mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +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)):
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user