From a72de1d5d7d9faf2a41f560fb773dc505621dafa Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 18 Jun 2017 13:11:01 -0400 Subject: 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. --- package.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3-70-g09d2