summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/equery/equery6
1 files changed, 5 insertions, 1 deletions
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")