summaryrefslogtreecommitdiff
path: root/bin/glsa-check
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2010-05-13 16:07:10 +0000
committerfuzzyray <fuzzyray@gentoo.org>2010-05-13 16:07:10 +0000
commit2da075929d99f961188efd63dffe6d650c917073 (patch)
tree341a2b1a77b071b7a7a277be995ef8d76ddf2eb2 /bin/glsa-check
parentc559b22ab2fce149d57cb99f65ff54a136122f39 (diff)
downloadgentoolkit-2da075929d99f961188efd63dffe6d650c917073.tar.gz
Replace portage.db[/] with portage.db[portage.root] so that root is not hardcoded
svn path=/trunk/gentoolkit/; revision=782
Diffstat (limited to 'bin/glsa-check')
-rwxr-xr-xbin/glsa-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index a783c27..a8c0188 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -148,8 +148,8 @@ glsaconfig = checkconfig(portage.config(clone=portage.settings))
if quiet:
glsaconfig["EMERGE_OPTS"] += " --quiet"
-vardb = portage.db["/"]["vartree"].dbapi
-portdb = portage.db["/"]["porttree"].dbapi
+vardb = portage.db[portage.root]["vartree"].dbapi
+portdb = portage.db[portage.root]["porttree"].dbapi
# Check that we really have a glsa dir to work on
if not (os.path.exists(glsaconfig["GLSA_DIR"]) and os.path.isdir(glsaconfig["GLSA_DIR"])):