diff options
author | 2008-08-15 01:56:01 +0000 | |
---|---|---|
committer | 2008-08-15 01:56:01 +0000 | |
commit | df5cbe562b49dc1e1c0d621af42f6a7fa76a3d12 (patch) | |
tree | ca9377c6e35fd92656b9ff95754aa3f15ee8bfa4 /qsearch.c | |
parent | - fix-uninitialised-value. Bug 221307 - thanks Arvid Norlander (diff) | |
download | portage-utils-df5cbe562b49dc1e1c0d621af42f6a7fa76a3d12.tar.gz portage-utils-df5cbe562b49dc1e1c0d621af42f6a7fa76a3d12.tar.bz2 portage-utils-df5cbe562b49dc1e1c0d621af42f6a7fa76a3d12.zip |
- make the -a work with the -c option
Diffstat (limited to 'qsearch.c')
-rw-r--r-- | qsearch.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2007 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/qsearch.c,v 1.36 2008/03/14 21:54:39 solar Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qsearch.c,v 1.37 2008/08/15 01:56:01 solar Exp $ * * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org> @@ -30,7 +30,7 @@ static const char *qsearch_opts_help[] = { "Show homepage info", COMMON_OPTS_HELP }; -static const char qsearch_rcsid[] = "$Id: qsearch.c,v 1.36 2008/03/14 21:54:39 solar Exp $"; +static const char qsearch_rcsid[] = "$Id: qsearch.c,v 1.37 2008/08/15 01:56:01 solar Exp $"; #define qsearch_usage(ret) usage(ret, QSEARCH_FLAGS, qsearch_long_opts, qsearch_opts_help, lookup_applet_idx("qsearch")) int qsearch_main(int argc, char **argv) @@ -111,7 +111,7 @@ int qsearch_main(int argc, char **argv) if ((pcache = cache_read_file(ebuild)) != NULL) { if ((strcmp(pcache->atom->PN, last)) != 0) { strncpy(last, pcache->atom->PN, sizeof(last)); - if ((rematch(search_me, (search_desc ? pcache->DESCRIPTION : ebuild), REG_EXTENDED | REG_ICASE)) == 0) + if (((rematch(search_me, (search_desc ? pcache->DESCRIPTION : ebuild), REG_EXTENDED | REG_ICASE)) == 0) || (search_all)) printf("%s%s/%s%s%s %s\n", BOLD, pcache->atom->CATEGORY, BLUE, pcache->atom->PN, NORM, (show_name_only ? "" : |