~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-08-12 15:28:37 UTC
  • Revision ID: mbp@sourcefrog.net-20050812152837-9f0bee4b51498c0e
- change default log format back to long
  (looks better with -v)

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)