From 437b4d4ffbdf3fa737980b1106eaa9e0c80aa027 Mon Sep 17 00:00:00 2001 From: genone Date: Fri, 6 Feb 2004 23:39:17 +0000 Subject: [PATCH] fix for equery which masked-package svn path=/; revision=80 --- trunk/src/equery/equery | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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") -- 2.26.2