summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-26 23:06:41 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-26 23:06:41 +0000
commit95040f85439934197e40a5f864d14206ec6b4a73 (patch)
tree5fa4e69e55bdbb68eec5479cfdb9f0a2f555702b
parent2c72bb29c7ba405e2deef81248a9f14ea049344d (diff)
downloadportage-95040f85439934197e40a5f864d14206ec6b4a73.tar.gz
portage-95040f85439934197e40a5f864d14206ec6b4a73.tar.bz2
portage-95040f85439934197e40a5f864d14206ec6b4a73.zip
In movefile(), ignore the hardlink_candidates parameter when it's an empty list.
svn path=/main/trunk/; revision=12111
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index bedbbf3f9..a4068b8fa 100644
--- 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()))