Merge pull request #388 from leth/patch-1

Walk file tree in order for deterministic builds
This commit is contained in:
Joffrey F 2014-11-14 10:11:41 -08:00
commit fa617804e7
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ def tar(path, exclude=None):
fnames = [name for name in filenames
if not fnmatch_any(os.path.join(relpath, name),
exclude)]
for name in fnames:
dirnames.sort()
for name in sorted(fnames):
arcname = os.path.join(relpath, name)
t.add(os.path.join(path, arcname), arcname=arcname)
for name in dirnames: