involving EROOT.
self.keys = ["HOMEPAGE", "SRC_URI", "KEYWORDS", "DESCRIPTION"]
for p in self.list:
- mydir = os.path.join(os.sep, portage.settings["EROOT"], portage.const.VDB_PATH, p)+os.sep
+ mydir = os.path.join(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["EROOT"], portage.const.VDB_PATH, p)+os.sep
+ mydir = os.path.join(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):
settings = trees[myroot]["vartree"].settings
break
- mtimedbfile = os.path.join(os.path.sep, settings['EROOT'], portage.CACHE_PATH, "mtimedb")
+ mtimedbfile = os.path.join(settings['EROOT'], portage.CACHE_PATH, "mtimedb")
mtimedb = portage.MtimeDB(mtimedbfile)
portage.output._init(config_root=settings['PORTAGE_CONFIGROOT'])
QueryCommand._db = trees
# most attributes exist twice as atoms and non-atoms are stored in
# separate files
self._lock = None
- self._filename = os.path.join(os.sep, eroot, WORLD_FILE)
+ self._filename = os.path.join(eroot, WORLD_FILE)
self.loader = ItemFileLoader(self._filename, self._validate)
self._mtime = None
- self._filename2 = os.path.join(os.sep, eroot, WORLD_SETS_FILE)
+ self._filename2 = os.path.join(eroot, WORLD_SETS_FILE)
self.loader2 = ItemFileLoader(self._filename2, self._validate2)
self._mtime2 = None
@rtype: list
@return: list of glsa IDs
"""
- return grabfile(os.path.join(os.sep, settings["EROOT"], CACHE_PATH, "glsa"))
+ return grabfile(os.path.join(settings["EROOT"], CACHE_PATH, "glsa"))
# TODO: use the textwrap module instead
"""
if not self.isApplied():
checkfile = codecs.open(
- _unicode_encode(os.path.join(os.sep, self.config["EROOT"],
+ _unicode_encode(os.path.join(self.config["EROOT"],
CACHE_PATH, "glsa"),
encoding=_encodings['fs'], errors='strict'),
mode='a+', encoding=_encodings['content'], errors='strict')