~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-02-21 17:41:02 UTC
  • mfrom: (1185.50.85 bzr-jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060221174102-aa6bd4464296c614
Mac OSX raises EPERM when you try to unlink a directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
            os.unlink(full_path)
285
285
        except OSError, e:
286
286
        # We may be renaming a dangling inventory id
287
 
            if e.errno != errno.EISDIR and e.errno != errno.EACCES:
 
287
            if e.errno not in (errno.EISDIR, errno.EACCES, errno.EPERM):
288
288
                raise
289
289
            os.rmdir(full_path)
290
290