projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c72bb2
)
In movefile(), ignore the hardlink_candidates parameter when it's an empty list.
author
Zac Medico
<zmedico@gentoo.org>
Wed, 26 Nov 2008 23:06:41 +0000
(23:06 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 26 Nov 2008 23:06:41 +0000
(23:06 -0000)
svn path=/main/trunk/; revision=12111
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index bedbbf3f9cdbcb892c36fc1d55d045ebf3724c2a..a4068b8fa176f762fc753f45e263ba71e03c517c 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-6046,7
+6046,7
@@
def movefile(src, dest, newmtime=None, sstat=None, mysettings=None,
# so os.link() calls might fail for some paths, so try them all.
# For atomic replacement, first create the link as a temp file
# and them use os.rename() to replace the destination.
- if hardlink_candidates
is not None
:
+ if hardlink_candidates:
head, tail = os.path.split(dest)
hardlink_tmp = os.path.join(head, ".%s._portage_merge_.%s" % \
(tail, os.getpid()))