diff options
-rwxr-xr-x | bin/emerge | 5 |
1 files changed, 3 insertions, 2 deletions
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: |