aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-12-29 18:31:40 +0000
committerlloyd <[email protected]>2013-12-29 18:31:40 +0000
commit6e3c0b6cb860e7c5ab835eb04d96ac779abb67ec (patch)
treea7dc9d4f4ebf47188a258d14e337f6a43a59745b /src
parent60a5ede20b6fbd150f612d3ca7b975e48ab97c4b (diff)
Fix running without --write-hash-file
Diffstat (limited to 'src')
-rwxr-xr-xsrc/build-data/scripts/dist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build-data/scripts/dist.py b/src/build-data/scripts/dist.py
index 4271492f8..56aabd45f 100755
--- a/src/build-data/scripts/dist.py
+++ b/src/build-data/scripts/dist.py
@@ -328,7 +328,8 @@ def main(args = None):
output_files.append(output_archive)
- hash_file.close()
+ if hash_file != None:
+ hash_file.close()
shutil.rmtree(output_basename)