~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Martin Pool
  • Date: 2011-11-16 06:41:04 UTC
  • mto: (6015.44.6 2.4)
  • mto: This revision was merged to the branch mainline in revision 6345.
  • Revision ID: mbp@canonical.com-20111116064104-n2ke1svv6kaj6wxa
Also suppress EACCES from chmod

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        # doing a stat, and then trying to compare
117
117
        os.chmod(filename, mode)
118
118
    except (IOError, OSError),e:
119
 
        # EPERM seems to commonly happen on smbfs; there's probably no
120
 
        # point warning about it.
 
119
        # Permission/access denied seems to commonly happen on smbfs; there's
 
120
        # probably no point warning about it.
121
121
        # <https://bugs.launchpad.net/bzr/+bug/606537>
122
 
        if getattr(e, 'errno') == errno.EPERM:
 
122
        if getattr(e, 'errno') in (errno.EPERM, errno.EACCES):
123
123
            trace.mutter("ignore EPERM on mkdir of %r" % filename)
124
124
            return
125
125
        raise