aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-05-21 11:36:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-05-21 11:36:05 +0200
commit181e25632544f4970036b2bfbcda517411faf6c7 (patch)
tree83a813dc800430afedcfff979ceb4a6e0b3f71d6
parent4b0178d44a800784dde018b870f2eb47a2eeec66 (diff)
Use POSIX tar format (ustar) when archiving distributions
-rw-r--r--build2/dist/operation.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx
index 8490db4..fddfcea 100644
--- a/build2/dist/operation.cxx
+++ b/build2/dist/operation.cxx
@@ -581,6 +581,7 @@ namespace build2
nullptr))
{
args = {"tar",
+ "--format", "ustar",
"-cf", "-",
pkg.c_str (),
nullptr};
@@ -604,11 +605,13 @@ namespace build2
}
else if (e == "tar")
args = {"tar",
+ "--format", "ustar",
"-cf", ap.string ().c_str (),
pkg.c_str (),
nullptr};
else
args = {"tar",
+ "--format", "ustar",
"-a",
"-cf", ap.string ().c_str (),
pkg.c_str (),