summaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorgenone <genone@gentoo.org>2004-02-06 23:39:17 +0000
committergenone <genone@gentoo.org>2004-02-06 23:39:17 +0000
commit437b4d4ffbdf3fa737980b1106eaa9e0c80aa027 (patch)
tree883e0b6264a0bafd89ceec27233ca9a504a90157 /trunk
parent6f8dc603ab3f7ea14786f631f18efe67b1e30640 (diff)
downloadgentoolkit-437b4d4ffbdf3fa737980b1106eaa9e0c80aa027.tar.gz
fix for equery which masked-package
svn path=/; revision=80
Diffstat (limited to 'trunk')
-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")