# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1548436251 18000
#      Fri Jan 25 12:10:51 2019 -0500
# Node ID d00044f3707a10472fd637a641d3d7c173da750b
# Parent  8aa027ee6699d443d2b963951dd0ddbf43c4c1c7
repo-script: put benchrepo at the end of the archive

This will allow to modify it more easily than if it's located at the beginning
of the archive.

diff --git a/repo-scripts/make-reference b/repo-scripts/make-reference
--- a/repo-scripts/make-reference
+++ b/repo-scripts/make-reference
@@ -131,8 +131,9 @@
     # Tar everything
     print("building a reference tarball")
     with tarfile.open(repo_tarball, "w") as repo_tar_file:
+        repo_tar_file.add(repo_main)
+        # Add the benchrepo file at the end so it's easier to replace it
         repo_tar_file.add(repo_details)
-        repo_tar_file.add(repo_main)
     print("result available at: {0}".format(repo_tarball))