Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@laptop.org>2008-11-03 21:01:54 (GMT)
committer C. Scott Ananian <cscott@laptop.org>2008-11-03 22:14:10 (GMT)
commitd58d62a989e42b0556fbf60bf22afa4a1c13682f (patch)
tree5bb3e419b38c3acbebad4df40fd4453e066a34ec
parenta778d96a68b9aecb1d9cd3bf2cea2b4014616fb5 (diff)
Ensure MANIFEST is generated exactly the same, every time (in sorted order).
-rw-r--r--pippy_app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pippy_app.py b/pippy_app.py
index 290af5f..7230b52 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -746,8 +746,8 @@ def main():
copy2(sourcefile, '%s/pippy_app.py' % app_temp)
# write MANIFEST file.
with open('%s/MANIFEST' % app_temp, 'w') as f:
- for dirpath, dirnames, filenames in os.walk(app_temp):
- for name in filenames:
+ for dirpath, dirnames, filenames in sorted(os.walk(app_temp)):
+ for name in sorted(filenames):
fn = os.path.join(dirpath, name).replace(app_temp+'/', '')
if fn=='MANIFEST': continue
f.write('%s\n' % fn)