summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2010-05-10 19:45:36 +0100
committerKrzysztof Pawlik <nelchael@gentoo.org>2010-05-10 19:45:36 +0100
commit86c4a2784905fc54bb99892c7f8f224953a59952 (patch)
tree3deebc1396879ed771a9bc43c78b1178b3df217a
parentAdd binary version of jmeter. (diff)
downloadnelchael-86c4a2784905fc54bb99892c7f8f224953a59952.tar.gz
nelchael-86c4a2784905fc54bb99892c7f8f224953a59952.tar.bz2
nelchael-86c4a2784905fc54bb99892c7f8f224953a59952.zip
Support showing keyword information for other repositories.
-rwxr-xr-xscripts/eshowkw.py11
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