diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2010-05-10 19:45:36 +0100 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2010-05-10 19:45:36 +0100 |
commit | 86c4a2784905fc54bb99892c7f8f224953a59952 (patch) | |
tree | 3deebc1396879ed771a9bc43c78b1178b3df217a | |
parent | Add binary version of jmeter. (diff) | |
download | nelchael-86c4a2784905fc54bb99892c7f8f224953a59952.tar.gz nelchael-86c4a2784905fc54bb99892c7f8f224953a59952.tar.bz2 nelchael-86c4a2784905fc54bb99892c7f8f224953a59952.zip |
Support showing keyword information for other repositories.
-rwxr-xr-x | scripts/eshowkw.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/eshowkw.py b/scripts/eshowkw.py index 39fd26a..215c40e 100755 --- a/scripts/eshowkw.py +++ b/scripts/eshowkw.py @@ -2,6 +2,17 @@ import sys import os + +search_path = os.getcwd() +while search_path != '/': + if os.path.exists(os.path.join(search_path, 'profiles/repo_name')): + print 'Appending %s to PORTDIR_OVERLAY...' % search_path + if 'PORTDIR_OVERLAY' not in os.environ: + os.environ['PORTDIR_OVERLAY'] = search_path + else: + os.environ['PORTDIR_OVERLAY'] += ' ' + search_path + search_path = os.path.dirname(search_path) + import portage import portage.versions as portage_versions import portage.output as output |