Fix eshowkw traceback on prefix enviroments (Bug 411599).
authorPaul Varner <fuzzyray@gentoo.org>
Wed, 11 Apr 2012 15:00:56 +0000 (10:00 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Wed, 11 Apr 2012 15:00:56 +0000 (10:00 -0500)
pym/gentoolkit/eshowkw/keywords_content.py

index 99d652e7ace10caeb5e3d0e9dd1d811d50c78510..3e2551dfd345b937921054c0d4438ac9984df10d 100644 (file)
@@ -154,7 +154,7 @@ class keywords_content:
 
                def __init__(self, packages):
                        """Query all relevant data for version data formatting"""
-                       self.vartree = port.db[port.settings['ROOT']]['vartree'].dbapi
+                       self.vartree = port.db[port.root]['vartree'].dbapi
                        self.mysettings = port.config(local_config=False)
                        self.versions = self.__getVersions(packages)
                        self.masks = map(lambda x: self.__getMaskStatus(x), packages)