From f5a8d22d95088917aa2ef17c87dcf474e25e21de Mon Sep 17 00:00:00 2001 From: scarabeus Date: Wed, 17 Nov 2010 02:25:46 +0000 Subject: [PATCH] Respect category when running as cwd call without specified package. svn path=/trunk/gentoolkit/; revision=853 --- pym/gentoolkit/eshowkw/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py index 72be2f1..cb957a3 100644 --- a/pym/gentoolkit/eshowkw/__init__.py +++ b/pym/gentoolkit/eshowkw/__init__.py @@ -112,13 +112,13 @@ def main(argv, indirect = False): map(lambda x: process_display(x, keywords, dbapi), package) else: currdir = os.getcwd() - package=os.path.basename(currdir) # check if there are actualy some ebuilds ebuilds = ['%s' % x for x in os.listdir(currdir) if fnmatch.fnmatch(x, '*.ebuild')] 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)) ourtree = os.path.abspath('../../') overlays = '%s %s' % (ports['PORTDIR_OVERLAY'], ourtree) mysettings = portc(env={'PORTDIR_OVERLAY': overlays}) -- 2.26.2