Use join() rather than string printing. gentoolkit-0.3.0_rc11
authorscarabeus <scarabeus@gentoo.org>
Wed, 17 Nov 2010 02:33:58 +0000 (02:33 -0000)
committerscarabeus <scarabeus@gentoo.org>
Wed, 17 Nov 2010 02:33:58 +0000 (02:33 -0000)
svn path=/trunk/gentoolkit/; revision=854

pym/gentoolkit/eshowkw/__init__.py

index cb957a34109d6a374d8f5959e95ba2289b67e8da..b93b274a348a5036e3197f4c04325712dd5c58ea 100644 (file)
@@ -118,9 +118,9 @@ def main(argv, indirect = False):
                if len(ebuilds) <= 0:
                        msg_err = 'No ebuilds at "%s"' % currdir
                        raise SystemExit(msg_err)
-               package= '%s/%s' % (os.path.basename(os.path.abspath('../')), os.path.basename(currdir))
+               package= '/'.join(os.path.basename(os.path.abspath('../')), os.path.basename(currdir))
                ourtree = os.path.abspath('../../')
-               overlays = '%s %s' % (ports['PORTDIR_OVERLAY'], ourtree)
+               overlays = ' '.join(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