From e3c7244706e2efdae7adfa9816348c3bb74c319f Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 4 Sep 2010 19:43:53 +0200 Subject: use EROOT with VDB_PATH --- bin/archive-conf | 3 ++- bin/emaint | 4 ++-- bin/portageq | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/archive-conf b/bin/archive-conf index 97c055df1..5a03b856a 100755 --- a/bin/archive-conf +++ b/bin/archive-conf @@ -63,7 +63,8 @@ def archive_conf(): 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. diff --git a/bin/emaint b/bin/emaint index 5ff60422c..aa2e9a5c8 100755 --- a/bin/emaint +++ b/bin/emaint @@ -389,7 +389,7 @@ class VdbKeyHandler(object): 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): @@ -406,7 +406,7 @@ class VdbKeyHandler(object): 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): diff --git a/bin/portageq b/bin/portageq index 940575b1f..27a2e250e 100755 --- a/bin/portageq +++ b/bin/portageq @@ -456,7 +456,7 @@ def vdb_path(argv): 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 -- cgit v1.2.3-1-g7c22