Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114086 - Can equery give an exit code reflecting package presence?
Summary: Can equery give an exit code reflecting package presence?
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: Inclusion
: 205118 (view as bug list)
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2005-11-30 18:30 UTC by Lindsay Haisley
Modified: 2010-11-22 20:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lindsay Haisley 2005-11-30 18:30:09 UTC
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.
Comment 1 Mathijs Mohlmann 2006-02-18 00:13:27 UTC
and exit codes for equery files and belongs
Comment 2 Bo Ørsted Andresen (RETIRED) gentoo-dev 2008-02-24 23:09:48 UTC
*** Bug 205118 has been marked as a duplicate of this bug. ***
Comment 3 Douglas Anderson 2010-03-06 15:01:46 UTC
This should be pretty easy to do for 0.3.0.
Comment 4 Douglas Anderson 2010-03-12 12:13:37 UTC
$ 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
Comment 5 Paul Varner (RETIRED) gentoo-dev 2010-04-08 14:51:01 UTC
This is working for equery list, but not for the other commands.
Comment 6 Douglas Anderson 2010-07-16 15:57:55 UTC
(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.
Comment 7 Paul Varner (RETIRED) gentoo-dev 2010-11-22 20:32:26 UTC
Released in gentoolkit-0.3.0_rc11