Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 122877 Details for
Bug 182964
Portage should not fail if os.rename is across filesystem boundaries
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
substitute for os.rename
file_mv (text/plain), 338 bytes, created by
Martin Väth
on 2007-06-23 09:13:45 UTC
(
hide
)
Description:
substitute for os.rename
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2007-06-23 09:13:45 UTC
Size:
338 bytes
patch
obsolete
>#import os, shutil, errno >def file_mv(a, b): > "This is as os.rename but also works over filesystem boundaries" > try: > os.rename(a, b) > except os.error, detail: > if detail.errno == errno.EXDEV: > try: > shutil.copytree(a, b, symlinks=1) > except: > shutil.rmtree(b, ignore_errors=1) > raise > shutil.rmtree(a) > else: > raise >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 182964
: 122877 |
122886
|
122922