[New-bugs-announce] [issue14848] os.rename should not be used

Vetoshkin Nikita report at bugs.python.org
Fri May 18 10:50:32 CEST 2012


New submission from Vetoshkin Nikita <nikita.vetoshkin at gmail.com>:

When I attempt to remove package with pysetup remove 'package-name' on Fedora 17 - it fails with:
'my-package' cannot be removed
Error: [Errno 18] Invalid cross-device link

strace'ing showed that there was an attempt to call rename from package dir into /tmp which is tmpfs.

Proposed fix is trivial - use shutil.move instead of barebone os.rename.

----------
assignee: eric.araujo
components: Distutils2
messages: 161042
nosy: alexis, eric.araujo, nvetoshkin, tarek
priority: normal
severity: normal
status: open
title: os.rename should not be used
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14848>
_______________________________________


More information about the New-bugs-announce mailing list