/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 bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-30 22:42:39 UTC
  • mto: (1711.4.39 win32-accepted)
  • mto: This revision was merged to the branch mainline in revision 1836.
  • Revision ID: john@arbash-meinel.com-20060630224239-7c908c96a5e3d3ab
Linux raises EBUSY when renaming current directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
    try:
265
265
        fancy_rename(old, new, rename_func=os.rename, unlink_func=os.unlink)
266
266
    except OSError, e:
267
 
        if e.errno in (errno.EPERM, errno.EACCES):
 
267
        if e.errno in (errno.EPERM, errno.EACCES, errno.EBUSY):
268
268
            # If we try to rename a non-existant file onto cwd, we get EPERM
269
269
            # instead of ENOENT, this will raise ENOENT if the old path
270
270
            # doesn't exist