3 # Copyright 2009 Gentoo Technologies, Inc.
4 # Distributed under the terms of the GNU General Public License v2 or later
8 """Shortcut to equery meta"""
10 from __future__ import print_function
13 'Douglas Anderson <douglasjanderson@gmail.com>: equery meta',
14 'Ned Ludd <solar@gentoo.org>: first full implimentation'
15 'Eldad Zack <eldad@gentoo.org>: earch',
16 'Eric Olinger <EvvL AT RustedHalo DOT net>: metadata'
21 from gentoolkit import equery, errors
22 from gentoolkit.equery import mod_usage
23 from gentoolkit.equery.meta import main, print_help
24 from portage.exception import AmbiguousPackageName
26 def print_epkginfo_help():
27 print(mod_usage(mod_name="epkginfo"))
29 print_help(with_usage=False)
31 equery.initialize_configuration()
33 if not args or set(('-h', '--help')).intersection(args):
38 except AmbiguousPackageName as e:
40 for candidate in pkgs:
43 from gentoolkit import pprinter as pp
44 from os.path import basename # To get the short name
46 print(file=sys.stderr)
47 print(pp.error("The short ebuild name '%s' is ambiguous. Please specify" % basename(pkgs[0])),
48 file=sys.stderr, end="")
49 pp.die(1, "one of the above fully-qualified ebuild names instead.")
50 except errors.GentoolkitException as err:
51 from gentoolkit import pprinter as pp
54 # vim: set ts=4 sw=4 tw=79: