Fix command argument order when extracting cpio archives.

This commit is contained in:
Bastian Kleineidam 2011-01-17 12:37:10 -06:00
parent d93c0d5b7f
commit b11339bd2f
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
0.13 "" (released xx.xx.xxxx)
* Fix command argument order when extracting cpio archives.
0.12 "Galaxy Quest" (released 20.11.2010)

View File

@ -44,9 +44,9 @@ def create_cpio(archive, encoding, cmd, *args, **kwargs):
if kwargs['verbose']:
cmdlist.append('-v')
if len(args) != 0:
findcmd = ['find', '-print0']
findcmd = ['find']
findcmd.extend([util.shell_quote(x) for x in args])
findcmd.append('|')
findcmd.extend(['-print0', '|'])
cmdlist[0:0] = findcmd
cmdlist.append('-0')
cmdlist.extend([">", util.shell_quote(archive)])