~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/create_bzr_rollup.py

  • Committer: Martin Pool
  • Date: 2005-06-06 05:55:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050606055519-2fa201b47cefec08
- fix permissions on exported tar/zip files

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                if os.system('gzip "%s"' % tmp_path) != 0:
40
40
                        raise ValueError('Failed to compress')
41
41
                tmp_path += '.gz'
 
42
                os.chmod(tmp_path, 0644)
42
43
                os.rename(tmp_path, final_path)
43
44
        except:
44
45
                os.remove(tmp_path)
66
67
                if os.system('bzip2 "%s"' % tmp_path) != 0:
67
68
                        raise ValueError('Failed to compress')
68
69
                tmp_path += '.bz2'
 
70
                os.chmod(tmp_path, 0644)
69
71
                os.rename(tmp_path, final_path)
70
72
        except:
71
73
                os.remove(tmp_path)
94
96
                finally:
95
97
                        zip.close()
96
98
 
 
99
                os.chmod(tmp_path, 0644)
97
100
                os.rename(tmp_path, final_path)
98
101
        except:
99
102
                os.remove(tmp_path)