/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to contrib/create_bzr_rollup.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 17:00:29 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205170029-s01xdro0hkixhq3r
Convert some octal numbers to new notations.

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