Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r12111 - main/trunk/pym/portage
Date: Wed, 26 Nov 2008 23:06:45
Message-Id: E1L5TSz-0002I0-Tt@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-11-26 23:06:41 +0000 (Wed, 26 Nov 2008)
3 New Revision: 12111
4
5 Modified:
6 main/trunk/pym/portage/__init__.py
7 Log:
8 In movefile(), ignore the hardlink_candidates parameter when it's an empty list.
9
10
11 Modified: main/trunk/pym/portage/__init__.py
12 ===================================================================
13 --- main/trunk/pym/portage/__init__.py 2008-11-26 22:40:41 UTC (rev 12110)
14 +++ main/trunk/pym/portage/__init__.py 2008-11-26 23:06:41 UTC (rev 12111)
15 @@ -6046,7 +6046,7 @@
16 # so os.link() calls might fail for some paths, so try them all.
17 # For atomic replacement, first create the link as a temp file
18 # and them use os.rename() to replace the destination.
19 - if hardlink_candidates is not None:
20 + if hardlink_candidates:
21 head, tail = os.path.split(dest)
22 hardlink_tmp = os.path.join(head, ".%s._portage_merge_.%s" % \
23 (tail, os.getpid()))