diff options
author | 2010-11-17 02:33:58 +0000 | |
---|---|---|
committer | 2010-11-17 02:33:58 +0000 | |
commit | 39c976412d184db422b7329e3fe74d546d08eea4 (patch) | |
tree | a82487c0d5a9a9c0372070d0154d04a484960ab6 | |
parent | Respect category when running as cwd call without specified package. (diff) | |
download | gentoolkit-39c976412d184db422b7329e3fe74d546d08eea4.tar.gz gentoolkit-39c976412d184db422b7329e3fe74d546d08eea4.tar.bz2 gentoolkit-39c976412d184db422b7329e3fe74d546d08eea4.zip |
Use join() rather than string printing.gentoolkit-0.3.0_rc11
svn path=/trunk/gentoolkit/; revision=854
-rw-r--r-- | pym/gentoolkit/eshowkw/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py index cb957a3..b93b274 100644 --- a/pym/gentoolkit/eshowkw/__init__.py +++ b/pym/gentoolkit/eshowkw/__init__.py @@ -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 |