Fix command argument order when extracting cpio archives.
This commit is contained in:
parent
d93c0d5b7f
commit
b11339bd2f
|
@ -1,5 +1,6 @@
|
||||||
0.13 "" (released xx.xx.xxxx)
|
0.13 "" (released xx.xx.xxxx)
|
||||||
|
|
||||||
|
* Fix command argument order when extracting cpio archives.
|
||||||
|
|
||||||
0.12 "Galaxy Quest" (released 20.11.2010)
|
0.12 "Galaxy Quest" (released 20.11.2010)
|
||||||
|
|
||||||
|
|
|
@ -44,9 +44,9 @@ def create_cpio(archive, encoding, cmd, *args, **kwargs):
|
||||||
if kwargs['verbose']:
|
if kwargs['verbose']:
|
||||||
cmdlist.append('-v')
|
cmdlist.append('-v')
|
||||||
if len(args) != 0:
|
if len(args) != 0:
|
||||||
findcmd = ['find', '-print0']
|
findcmd = ['find']
|
||||||
findcmd.extend([util.shell_quote(x) for x in args])
|
findcmd.extend([util.shell_quote(x) for x in args])
|
||||||
findcmd.append('|')
|
findcmd.extend(['-print0', '|'])
|
||||||
cmdlist[0:0] = findcmd
|
cmdlist[0:0] = findcmd
|
||||||
cmdlist.append('-0')
|
cmdlist.append('-0')
|
||||||
cmdlist.extend([">", util.shell_quote(archive)])
|
cmdlist.extend([">", util.shell_quote(archive)])
|
||||||
|
|
Loading…
Reference in New Issue