Bug #230525 - Work around ObjectProxy breakage in `portageq vdb_path`.
authorZac Medico <zmedico@gentoo.org>
Fri, 4 Jul 2008 20:57:24 +0000 (20:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 4 Jul 2008 20:57:24 +0000 (20:57 -0000)
svn path=/main/trunk/; revision=10929

bin/portageq

index 12154df7797aa24166f9e1b4b6f25b3519f6b5b2..ce631807705ef92dbd338b484b9e7d44eb139ab9 100755 (executable)
@@ -294,8 +294,10 @@ def vdb_path(argv):
        Returns the path used for the var(installed) package database for the
        set environment/configuration options.
        """
-       print portage.root+portage.VDB_PATH
-
+       out = sys.stdout
+       out.write(os.path.join(portage.settings["ROOT"], portage.VDB_PATH) + "\n")
+       out.flush()
+       return os.EX_OK
 
 def gentoo_mirrors(argv):
        """