aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-15 16:08:35 +0000
committerlloyd <[email protected]>2014-02-15 16:08:35 +0000
commit6ca65037c16ef97341f187e29001677d75c8184a (patch)
tree501f3fa1f6b8d9eeb4f311210cdcd16b797660c9 /src/scripts
parent9241078d8797433779600b08fed5313dc30f3a76 (diff)
Sort files in the dist archive by name instead of random (inode) order
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/dist.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/scripts/dist.py b/src/scripts/dist.py
index 56aabd45f..e66815c3e 100755
--- a/src/scripts/dist.py
+++ b/src/scripts/dist.py
@@ -316,7 +316,13 @@ def main(args = None):
return 'w:bz2'
archive = tarfile.open(output_archive, write_mode())
- archive.add(output_basename)
+
+ for (curdir,_,files) in os.walk(output_basename):
+ all_files += [os.path.join(curdir, f) for f in files]
+ all_files.sort()
+
+ for f in all_files:
+ archive.add(f)
archive.close()
if hash_file != None: