+# vim:fileencoding=utf-8
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
prefix = opts.prefix
color = opts.color
package = opts.package
+
+ # equery support
+ if argv[0] == 'equery' 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
package=os.path.basename(currdir)
# check if there are actualy some ebuilds
ebuilds = ['%s' % x for x in os.listdir(currdir)
- if fnmatch.fnmatch(file, '*.ebuild')]
+ if fnmatch.fnmatch(x, '*.ebuild')]
if len(ebuilds) <= 0:
msg_err = 'No ebuilds at "%s"' % currdir
raise SystemExit(msg_err)