← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~harlowja/cloud-init:just-a-tar into cloud-init:master

 

Joshua Harlow has proposed merging ~harlowja/cloud-init:just-a-tar into cloud-init:master.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~harlowja/cloud-init/+git/cloud-init/+merge/302479
-- 
Your team cloud init development team is requested to review the proposed merge of ~harlowja/cloud-init:just-a-tar into cloud-init:master.
diff --git a/tools/make-tarball b/tools/make-tarball
index d870589..7a2a1ee 100755
--- a/tools/make-tarball
+++ b/tools/make-tarball
@@ -55,5 +55,11 @@ if [ "$rev" = HEAD ] && ! git diff-index --quiet HEAD --; then
     fi
 fi
 
-git archive --format=tar.gz --prefix="$archive_base/" "$rev" > "$output"
+TEMP_D=$(mktemp -d)
+working_dir=$PWD
+# this just uses tar because older versions of git are feature lacking...
+git archive --format=tar --prefix="$archive_base/" "$rev" > "$TEMP_D/$archive_base.tar"
+cd $TEMP_D/
+gzip "$archive_base.tar"
+mv "$archive_base.tar.gz" $working_dir/$output
 echo "$output"

Follow ups