portage.util.ensure_dirs(vdb_path)
vdb_lock = None
if os.access(vdb_path, os.W_OK) and not "--pretend" in myopts:
- vdb_lock = portage.locks.lockdir(vdb_path)
+ vardbapi.lock()
+ vdb_lock = True
if vdb_lock:
try:
mtimedb.commit()
finally:
if vdb_lock:
- portage.locks.unlockdir(vdb_lock)
+ vardbapi.unlock()
chk_updated_cfg_files(settings['EROOT'], config_protect)
from portage.dbapi._expand_new_virt import expand_new_virt
from portage.output import bold, colorize, darkgreen, green
from portage._sets import SETPREFIX
+from portage._sets.base import EditablePackageSet
from portage.util import cmp_sort_key
from _emerge.emergelog import emergelog
vdb_lock = None
try:
if os.access(vdb_path, os.W_OK):
- vdb_lock = portage.locks.lockdir(vdb_path)
+ vartree.dbapi.lock()
+ vdb_lock = True
realsyslist = []
for x in sets["system"].getAtoms():
finally:
if vdb_lock:
vartree.dbapi.flush_cache()
- portage.locks.unlockdir(vdb_lock)
-
- from portage._sets.base import EditablePackageSet
-
+ vartree.dbapi.unlock()
+
# generate a list of package sets that are directly or indirectly listed in "selected",
# as there is no persistent list of "installed" sets
installed_sets = ["selected"]