TransportError 'Operation not permitted' while branching

John Arbash Meinel john at arbash-meinel.com
Mon Aug 23 02:17:18 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


...

>   File "/home/user0/install/bzr-2.2.0/bzrlib/transport/local.py", line
> 325, in mkdir
>     self._mkdir(self._abspath(relpath), mode=mode)
>   File "/home/user0/install/bzr-2.2.0/bzrlib/transport/local.py", line
> 321, in _mkdir
>     self._translate_error(e, abspath)
>   File "/home/user0/install/bzr-2.2.0/bzrlib/transport/__init__.py",
> line 322, in _translate_error
>     raise errors.TransportError(orig_error=e)
> TransportError: Transport error: [Errno 1] Operation not permitted:
> '/user/user0/windata/foo/.bzr' [Errno 1] Operation not permitted:
> '/user/user0/windata/foo/.bzr'

We are failing while trying to 'mkdir'. Seems like a simple permission
error. I don't know why we aren't directly translating Errno 1 to
PermissionDenied. Looking at the code I see:

  if e.errno == errno.EACCES:
      raise errors.PermissionDenied(path, extra=e)

that should probably be changed to:

  if e.errno in (errno.EACCES, errno.EPERM):
      raise errors.PermissionDenied(path, extra=e)


John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxxzB4ACgkQJdeBCYSNAAOfTwCeM9T/C8hgUXzeOwdKapJkPEHz
CjwAn0GZPjdhHOT9DH1qnFcYpbpVhupU
=/6wg
-----END PGP SIGNATURE-----



More information about the bazaar mailing list