md5_match_hash[conf] = ''
# Find all the CONTENT files in VDB_PATH.
- content_files += os.popen(FIND_EXTANT_CONTENTS % (os.path.join(portage.root, portage.VDB_PATH))).readlines()
+ content_files += os.popen(FIND_EXTANT_CONTENTS %
+ (os.path.join(portage.settings['EROOT'], portage.VDB_PATH))).readlines()
# Search for the saved md5 checksum of all the specified config files
# and see if the current file is unmodified or not.
self.keys = ["HOMEPAGE", "SRC_URI", "KEYWORDS", "DESCRIPTION"]
for p in self.list:
- mydir = os.path.join(os.sep, portage.settings["ROOT"], portage.const.VDB_PATH, p)+os.sep
+ mydir = os.path.join(os.sep, portage.settings["EROOT"], portage.const.VDB_PATH, p)+os.sep
ismissing = True
for k in self.keys:
if os.path.exists(mydir+k):
errors = []
for p in self.missing:
- mydir = os.path.join(os.sep, portage.settings["ROOT"], portage.const.VDB_PATH, p)+os.sep
+ mydir = os.path.join(os.sep, portage.settings["EROOT"], portage.const.VDB_PATH, p)+os.sep
if not os.access(mydir+"environment.bz2", os.R_OK):
errors.append("Can't access %s" % (mydir+"environment.bz2"))
elif not os.access(mydir, os.W_OK):
set environment/configuration options.
"""
out = sys.stdout
- out.write(os.path.join(portage.settings["ROOT"], portage.VDB_PATH) + "\n")
+ out.write(os.path.join(portage.settings["EROOT"], portage.VDB_PATH) + "\n")
out.flush()
return os.EX_OK
after one or more packages may have been installed or
uninstalled.
"""
- vdb_path = os.path.join(self.root, portage.VDB_PATH)
+ vdb_path = os.path.join(self.settings['EROOT'], portage.VDB_PATH)
try:
# At least the parent needs to exist for the lock file.
portage.util.ensure_dirs(vdb_path)
pkg_cache[cpv] = pkg
return pkg
- vdb_path = os.path.join(settings["ROOT"], portage.VDB_PATH)
+ vdb_path = os.path.join(settings["EROOT"], portage.VDB_PATH)
try:
# At least the parent needs to exist for the lock file.
portage.util.ensure_dirs(vdb_path)
sp_absx_len = len(sp_absx)
- vdb_path = os.path.join(settings["ROOT"], portage.VDB_PATH)
+ vdb_path = os.path.join(settings["EROOT"], portage.VDB_PATH)
vdb_len = len(vdb_path)
sp_vdb = vdb_path.split("/")