summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-20 18:28:11 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-20 18:28:11 +0000
commit6264a1ae6b7518fb06041e6c7317df9c087632db (patch)
treede85c857b8fb1c57e6a305362d3f8318465ccd9c
parent442b511530e65a45949dfc66236197116aa53850 (diff)
downloadportage-6264a1ae6b7518fb06041e6c7317df9c087632db.tar.gz
portage-6264a1ae6b7518fb06041e6c7317df9c087632db.tar.bz2
portage-6264a1ae6b7518fb06041e6c7317df9c087632db.zip
Use wantnewlockfile=1 on /var/lib/portage/config for bug #137269. r3540 is also related.
svn path=/main/trunk/; revision=3543
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 3ebe81b77..f5d4cf1e7 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6337,7 +6337,8 @@ class dblink:
os.chown(my_private_path, os.getuid(), portage_gid)
os.chmod(my_private_path, 02770)
- mylock = portage_locks.lockfile(os.path.join(destroot, CONFIG_MEMORY_FILE))
+ mylock = portage_locks.lockfile(
+ os.path.join(destroot, CONFIG_MEMORY_FILE), wantnewlockfile=1)
writedict(cfgfiledict, os.path.join(destroot, CONFIG_MEMORY_FILE))
portage_locks.unlockfile(mylock)