X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from dal-a2.localdomain (unknown [74.117.189.115]) by mail.alpinelinux.org (Postfix) with ESMTP id 889B9DC0091 for ; Fri, 28 Jun 2013 12:46:47 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@tanael.org) by dal-a2.localdomain (Postfix) with ESMTPSA id BC28BBC2A86; Fri, 28 Jun 2013 12:46:46 +0000 (UTC) Date: Fri, 28 Jun 2013 14:46:43 +0200 From: Natanael Copa To: Dubiousjim Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH 09/15] Allow "apk search -x" for -e Message-ID: <20130628144643.1d0d3dd6@ncopa-desktop.alpinelinux.org> In-Reply-To: <64e093a929f8a2363bdc54e43ddf08ba9741b46a.1372361242.git.dubiousjim@gmail.com> References: <64e093a929f8a2363bdc54e43ddf08ba9741b46a.1372361242.git.dubiousjim@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.17; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 27 Jun 2013 15:28:54 -0400 Dubiousjim wrote: > --- > src/search.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/search.c b/src/search.c > index 122affe..4ef804d 100644 > --- a/src/search.c > +++ b/src/search.c > @@ -82,6 +82,7 @@ static int search_parse(void *ctx, struct apk_db_options *dbopts, > ictx->show_all = 1; > break; > case 'e': > + case 'x': > ictx->search_exact = 1; > break; > case 'o': > @@ -171,7 +172,8 @@ static struct apk_option search_options[] = { > { 'U', "update-cache", "Update the repository cache first" }, > { 'a', "all", "Show all package versions (instead of latest only)" }, > { 'd', "description", "Search package descriptions (implies -a)" }, > - { 'e', "exact", "Require exact match (instead of substring match)" }, > + { 'x', "exact", "Require exact match (instead of substring match)" }, > + { 'e', NULL, "Synonym for -x (deprecated)" }, > { 'o', "origin", "Print origin package name instead of the subpackage" }, > { 'R', "rdepends", "List all (installed and uninstalled) packages depending on PACKAGE" }, > { 'r', NULL, "Synonym for -R (deprecated)" }, Ok, I am ok with this if its rebased to current git. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---