Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-07 10:09:57 -0500
committerDan McGee <dan@archlinux.org>2012-04-07 10:13:38 -0500
commit114d121001d8c3e901d5330b864d58870c6e917b (patch)
tree2b5002b320ba1ff0eaab333b65d647935a5fd3b8
parent391769ff8914b1aa94fd8daa87da0d2bfc2cc328 (diff)
pkgdelta: use bsdtar -q option
This matches the optimization made to repo-add in commit 8bbaf045b9ce way back in 2009. We don't need to read the whole package file to ensure multiple .PKGINFO entries don't exist, as well-formed packages should have this file first in the archive. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/pkgdelta.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pkgdelta.sh.in b/scripts/pkgdelta.sh.in
index 35be70ce..e8e54b8e 100644
--- a/scripts/pkgdelta.sh.in
+++ b/scripts/pkgdelta.sh.in
@@ -61,7 +61,7 @@ read_pkginfo()
IFS="
"
local line var val
- for line in $(bsdtar -xOf "$1" .PKGINFO 2>/dev/null |
+ for line in $(bsdtar -xOqf "$1" .PKGINFO 2>/dev/null |
grep -v "^#" | sed 's|\(\w*\)\s*=\s*\(.*\)|\1="\2"|'); do
eval "$line"
if [[ -n $pkgname && -n $pkgver && -n $arch ]]; then