svn path=/trunk/gentoolkit/; revision=838
# Distributed under the terms of the GNU General Public License v2
import sys
-from ...gentoolkit.eshowkw import main as emain
+from gentoolkit.eshowkw import main as emain
+# we have equery as first argument instead of the scriptname
+# so we will just ommit it
emain(sys.argv)
def main(argv):
global ignore_slots, bold, order, topper
+ # equery support
+ if argv[0] = 'equery':
+ pkgsearch_only = True
+
#opts parsing
opts = process_args(argv)
ignore_slots = opts.ignore_slot
prefix = opts.prefix
color = opts.color
package = opts.package
+
+ # equery support
+ if pkgsearch_only and len(package) <= 0:
+ msg_err = 'No packages specified'
+ raise SystemExit(msg_err)
+
# disable colors when redirected and they are not forced on
if not color and not sys.stdout.isatty():
# disable colors