I'd like to see an option to equery that would provide a non-zero exit code if equiry l -i <pkg-spec> didn't locate the spec'd package. This would be very useful for scripting bulk ebuilds from shell scripts and would be a way to avoid redundant builds.
and exit codes for equery files and belongs
*** Bug 205118 has been marked as a duplicate of this bug. ***
This should be pretty easy to do for 0.3.0.
$ equery l gentoolkit && equery -V * Searching for gentoolkit ... [IP-] [ ] app-portage/gentoolkit-0.3.0_rc9:0 equery (svn) - Gentoo package query tool $ svn info Path: . URL: https://genscripts.googlecode.com/svn/trunk/gentoolkit Repository Root: https://genscripts.googlecode.com/svn Repository UUID: 5234894e-44cd-11de-9a4c-a76526a193c6 Revision: 381 Node Kind: directory Schedule: normal Last Changed Author: douglasjanderson Last Changed Rev: 381 Last Changed Date: 2010-03-11 23:53:24 -0500 (Thu, 11 Mar 2010) $ equery l foobar * Searching for foobar ... !!! No installed packages matching 'foobar' $ echo $? 1
This is working for equery list, but not for the other commands.
(In reply to comment #5) > This is working for equery list, but not for the other commands. > genscripts repo r453 brings all other modules except the brand new 'has' module up to speed here... effectively FIXED.
Released in gentoolkit-0.3.0_rc11