Extend PORTDIR_OVERLAY rather than overriding it to not create warnings.
authorscarabeus <scarabeus@gentoo.org>
Fri, 29 Oct 2010 09:04:07 +0000 (09:04 -0000)
committerscarabeus <scarabeus@gentoo.org>
Fri, 29 Oct 2010 09:04:07 +0000 (09:04 -0000)
svn path=/trunk/gentoolkit/; revision=840

pym/gentoolkit/eshowkw/__init__.py

index 3e3572ee7e62c17fe7c3c4022a99c3aaaeb27fde..6bb4e54f87c8f96844f1c262b283e9933cac5f17 100644 (file)
@@ -120,8 +120,8 @@ def main(argv):
                        msg_err = 'No ebuilds at "%s"' % currdir
                        raise SystemExit(msg_err)
                ourtree = os.path.abspath('../../')
-
-               mysettings = portc(env={'PORTDIR_OVERLAY': os.path.abspath('../../')})
+               overlays = '%s %s' % (ports['PORTDIR_OVERLAY'], ourtree)
+               mysettings = portc(env={'PORTDIR_OVERLAY': overlays})
                dbapi = portdbapi(mysettings=mysettings)
                # specify that we want just our nice tree we are in cwd
                dbapi.porttrees = [ourtree]