From: Zac Medico Date: Wed, 15 Nov 2006 09:00:22 +0000 (-0000) Subject: Don't try to lock the vdb unless privileges are sufficient. X-Git-Tag: v2.1.2~461 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c529238b8ec6cc410d4d20c568eab86527298ac;p=portage.git Don't try to lock the vdb unless privileges are sufficient. svn path=/main/trunk/; revision=5053 --- diff --git a/bin/emerge b/bin/emerge index d51c9c609..41ad34e76 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2705,10 +2705,11 @@ def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files, global_unmerge=0 xterm_titles = "notitles" not in settings.features + vdb_path = os.path.join(settings["ROOT"], portage.VDB_PATH) vdb_lock = None try: - vdb_lock = portage_locks.lockdir( - os.path.join(settings["ROOT"], portage.VDB_PATH)) + if os.access(vdb_path, os.W_OK): + vdb_lock = portage_locks.lockdir(vdb_path) realsyslist = getlist(settings, "system") syslist = [] for x in realsyslist: