projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f8dc60
)
fix for equery which masked-package
author
genone
<genone@gentoo.org>
Fri, 6 Feb 2004 23:39:17 +0000
(23:39 -0000)
committer
genone
<genone@gentoo.org>
Fri, 6 Feb 2004 23:39:17 +0000
(23:39 -0000)
svn path=/; revision=80
trunk/src/equery/equery
patch
|
blob
|
history
diff --git
a/trunk/src/equery/equery
b/trunk/src/equery/equery
index fa7e2e6a498c148d703a643a093172cc86acf3a6..6160a821a54d52418228b6f114c89d44011dc671 100755
(executable)
--- 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")