From: genone Date: Fri, 6 Feb 2004 23:39:17 +0000 (-0000) Subject: fix for equery which masked-package X-Git-Tag: gentoolkit-0.2.4.3~422 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=437b4d4ffbdf3fa737980b1106eaa9e0c80aa027;p=gentoolkit.git fix for equery which masked-package svn path=/; revision=80 --- diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index fa7e2e6..6160a82 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -676,7 +676,11 @@ class CmdWhich(Command): matches = gentoolkit.find_packages(query) matches = gentoolkit.sort_package_list(matches) - print os.path.normpath(matches[-1].get_ebuild_path()) + if matches: + print os.path.normpath(matches[-1].get_ebuild_path()) + else: + print red("!!!"), "no unmasked packages found for %s" % query + print def shortHelp(self): return turquoise("pkgspec") + " - print full path to ebuild for package " + turquoise("pkgspec")