Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/package.inc.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-06-18 13:11:01 -0400
committerDave Reisner <dreisner@archlinux.org>2017-06-18 13:11:01 -0400
commita72de1d5d7d9faf2a41f560fb773dc505621dafa (patch)
tree92d1e5e82ffb4859bcd378f5ce7e7ac337ed325b /package.inc.sh
parent283d692d994d8d3258822c59c679130e68d2499e (diff)
package: prefer tar over bsdtar
bsdtar is common to all Arch systems, but other distros (debian-ish) might only have tar installed by default. Sadly, bsdtar has slightly nicer semantics in it's -s than GNU tar's transform when matchin directories in the tarball.
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.inc.sh b/package.inc.sh
index 961e39b..f01374b 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -155,7 +155,7 @@ package_export() {
log_info 'exporting %s:%s' "$pkgname" "$subtree"
git archive --format=tar "remotes/$remote/packages/$pkgname" "$subtree/" |
- bsdtar -C "$startdir" -s ",^$subtree/,$pkgname/," -xf - "$subtree/"
+ tar -C "$startdir" --transform "s,^$subtree,$pkgname," -xf - "$subtree/"
}
package_checkout() {