{"issue":{"title":"pip search should set and return a userful shell status code","user":{"login":"vbabiy","id":15382,"url":"https://api.github.com/users/vbabiy","avatar_url":"https://secure.gravatar.com/avatar/7639090fe1ef7c934691a5ecb7083a7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7639090fe1ef7c934691a5ecb7083a7d"},"created_at":"2011-03-15T06:00:23Z","milestone":null,"labels":[{"name":"bug","url":"https://api.github.com/repos/pypa/pip/labels/bug","color":"f00909"},{"name":"easy","url":"https://api.github.com/repos/pypa/pip/labels/easy","color":"03b4f5"},{"name":"import","url":"https://api.github.com/repos/pypa/pip/labels/import","color":"ededed"}],"state":"closed","updated_at":"2011-12-29T18:33:41Z","id":674442,"closed_at":"2011-12-29T18:33:41Z","html_url":"https://github.com/pypa/pip/issues/22","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Currently, `pip search` exits with the status code `0` under all non-error conditions (as does most of pip itself I'd guess). But this is not very useful for e.g. testing if `pip` found a result.\n\nIt would be nice if `pip search` returned non-zero in case it does not find anything, so it can be used in `sh` scripts or lines.\n\n---------------------------------------\n- Bitbucket: https://bitbucket.org/ianb/pip/issue/214\n- Originally Reported By:  \n- Originally Created At: 2011-02-17 10:38:40\n","number":22,"url":"https://api.github.com/repos/pypa/pip/issues/22","comments":8,"assignee":{"login":"hugobr","id":61387,"url":"https://api.github.com/users/hugobr","avatar_url":"https://secure.gravatar.com/avatar/df1f24dcadec85faaa16c9dc541c0006?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"df1f24dcadec85faaa16c9dc541c0006"}},"comment":{"user":{"login":"hugobr","id":61387,"url":"https://api.github.com/users/hugobr","avatar_url":"https://secure.gravatar.com/avatar/df1f24dcadec85faaa16c9dc541c0006?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"df1f24dcadec85faaa16c9dc541c0006"},"created_at":"2011-12-29T18:33:40Z","updated_at":"2011-12-29T18:33:40Z","id":3303580,"body":"Sorry for taking so long to implement this and merge. It is done as follows:\r\n\r\n    SUCCESS = 0\r\n    ERROR = 1\r\n    UNKNOWN_ERROR = 2\r\n    VIRTUALENV_NOT_FOUND = 3\r\n    NO_MATCHES_FOUND = 23\r\n\r\n\r\nThere are places where exit status are hard coded and not imported from `pip/status_codes.py`.","url":"https://api.github.com/repos/pypa/pip/issues/comments/3303580"},"action":"created"}