~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:13:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050606051321-096739d92aa50664
- make sure bzr is always explicitly invoked through 
  python in case it's not executable

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)
43
42
                os.rename(tmp_path, final_path)
44
43
        except:
45
44
                os.remove(tmp_path)
67
66
                if os.system('bzip2 "%s"' % tmp_path) != 0:
68
67
                        raise ValueError('Failed to compress')
69
68
                tmp_path += '.bz2'
70
 
                os.chmod(tmp_path, 0644)
71
69
                os.rename(tmp_path, final_path)
72
70
        except:
73
71
                os.remove(tmp_path)
96
94
                finally:
97
95
                        zip.close()
98
96
 
99
 
                os.chmod(tmp_path, 0644)
100
97
                os.rename(tmp_path, final_path)
101
98
        except:
102
99
                os.remove(tmp_path)