~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_api.py

  • Committer: Martin Pool
  • Date: 2011-11-14 09:37:40 UTC
  • mto: (6015.44.6 2.4)
  • mto: This revision was merged to the branch mainline in revision 6345.
  • Revision ID: mbp@canonical.com-20111114093740-dtzfqyi763y95otl
Use a chmod wrapper to cope with eperm from chmod

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
        proxy_info=proxy_info)
135
135
    # XXX: Work-around a minor security bug in launchpadlib 1.5.1, which would
136
136
    # create this directory with default umask.
137
 
    os.chmod(cache_directory, 0700)
 
137
    osutils.chmod_if_possible(cache_directory, 0700)
138
138
    return launchpad
139
139
 
140
140