summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-26 23:07:44 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-26 23:07:44 +0000
commit57f770aebc157841ca0ec827ed7b15043b4b35c2 (patch)
treea24476c7d6867b6c45922d919ea9442eb8623118
parent6415910cb04e773c91b0f8b41704a5e9611f4198 (diff)
downloadportage-57f770aebc157841ca0ec827ed7b15043b4b35c2.tar.gz
portage-57f770aebc157841ca0ec827ed7b15043b4b35c2.tar.bz2
portage-57f770aebc157841ca0ec827ed7b15043b4b35c2.zip
In movefile(), ignore the hardlink_candidates parameter when it's an empty list.
(trunk r12111) svn path=/main/branches/2.1.6/; revision=12112
-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 2fcb4b143..2db358580 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -6036,7 +6036,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()))