From: scarabeus Date: Thu, 28 Oct 2010 21:18:06 +0000 (-0000) Subject: Initial commit to add equery keywords support for executing eshowkw. X-Git-Tag: gentoolkit-0.3.0_rc11~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7736c7d22e9c5692fef8b73a3a27bf9c6c101918;p=gentoolkit.git Initial commit to add equery keywords support for executing eshowkw. svn path=/trunk/gentoolkit/; revision=837 --- diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py index be30ed8..6fcdd02 100644 --- a/pym/gentoolkit/equery/__init__.py +++ b/pym/gentoolkit/equery/__init__.py @@ -54,6 +54,7 @@ NAME_MAP = { 'f': 'files', 'h': 'hasuse', 'l': 'list_', + 'k': 'keywords', 'a': 'has', 'm': 'meta', 's': 'size', @@ -94,6 +95,7 @@ def print_help(with_description=True): (" (f)iles", "list all files installed by PKG"), (" h(a)s", "list all packages for matching ENVIRONMENT data stored in /var/db/pkg"), (" (h)asuse", "list all packages that have USE flag"), + (" (k)keywords", "display keywords for specified PKG"), (" (l)ist", "list package matching PKG"), (" (m)eta", "display metadata about PKG"), (" (s)ize", "display total size of all files owned by PKG"), diff --git a/pym/gentoolkit/equery/keywords.py b/pym/gentoolkit/equery/keywords.py new file mode 100644 index 0000000..f876510 --- /dev/null +++ b/pym/gentoolkit/equery/keywords.py @@ -0,0 +1,7 @@ +# Copyright 2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +import sys +from ...gentoolkit.eshowkw import main as emain + +emain(sys.argv)