[Pkg-bazaar-commits] ./bzr/unstable r625: - fix permissions on exported tar/zip files
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:28 UTC 2009
------------------------------------------------------------
revno: 625
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-06-06 15:55:19 +1000
message:
- fix permissions on exported tar/zip files
modified:
contrib/create_bzr_rollup.py
-------------- next part --------------
=== modified file 'contrib/create_bzr_rollup.py'
--- a/contrib/create_bzr_rollup.py 2005-06-06 04:15:44 +0000
+++ b/contrib/create_bzr_rollup.py 2005-06-06 05:55:19 +0000
@@ -39,6 +39,7 @@
if os.system('gzip "%s"' % tmp_path) != 0:
raise ValueError('Failed to compress')
tmp_path += '.gz'
+ os.chmod(tmp_path, 0644)
os.rename(tmp_path, final_path)
except:
os.remove(tmp_path)
@@ -66,6 +67,7 @@
if os.system('bzip2 "%s"' % tmp_path) != 0:
raise ValueError('Failed to compress')
tmp_path += '.bz2'
+ os.chmod(tmp_path, 0644)
os.rename(tmp_path, final_path)
except:
os.remove(tmp_path)
@@ -94,6 +96,7 @@
finally:
zip.close()
+ os.chmod(tmp_path, 0644)
os.rename(tmp_path, final_path)
except:
os.remove(tmp_path)
More information about the Pkg-bazaar-commits
mailing list