summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-15 22:08:17 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-15 22:08:17 -0400
commit9bb1ddbaf5f0585f5854ee2c25204bda56b32974 (patch)
tree4ceccd65dc8693ddfdc62f50a7dea14c27445c9d /src
parent7cdbee3ef93c1bef4b79310e4ef46cbde18c534f (diff)
librefetch: Fix bug with xargs calling tar too many times (cut xargs out)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librefetch/librefetch2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index b29598d..11cf380 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -276,7 +276,7 @@ makepkg_modify='
# - pass --format=ustar to bsdtar, to inhibit it using the pax format
# - take the files that would be included in the tarball, and use
# find/sort/xargs to order them before passing them to bsdtar
- s/bsdtar(.*) - ([^|]*) \|/find \2 -print0 | LC_ALL=C sort --zero-terminated | xargs -0 bsdtar --format=ustar --no-recursion \1 - |/
+ s/bsdtar(.*) - ([^|]*) \|/find \2 -print0 | LC_ALL=C sort --zero-terminated | bsdtar --null --files-from - --format=ustar --no-recursion \1 - |/
s/create_signature .*/&; return $?/ # do not procede to create symlinks
}