if (self.phase in self._locked_phases and
"ebuild-locks" in self.settings.features):
- root = self.settings["ROOT"]
- lock_path = os.path.join(root, portage.VDB_PATH + "-ebuild")
+ eroot = self.settings["EROOT"]
+ lock_path = os.path.join(eroot, portage.VDB_PATH + "-ebuild")
if os.access(os.path.dirname(lock_path), os.W_OK):
self._ebuild_lock = lockdir(lock_path)
self._start_task(ebuild_process, self._ebuild_exit)
lines.append((include_file, line))
aux_keys = [self._needed_aux_key]
- vdb_path = os.path.join(self._root, portage.VDB_PATH)
- vdb_lock = lockdir(vdb_path)
+ self._dbapi.lock()
try:
for cpv in self._dbapi.cpv_all():
if exclude_pkgs is not None and cpv in exclude_pkgs:
for line in self._dbapi.aux_get(cpv, aux_keys)[0].splitlines():
lines.append((needed_file, line))
finally:
- unlockdir(vdb_lock)
+ self._dbapi.unlock()
# have to call scanelf for preserved libs here as they aren't
# registered in NEEDED.ELF.2 files