X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 6A82ADC1744 for ; Thu, 27 Jun 2013 19:29:10 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 8FB8720D85 for ; Thu, 27 Jun 2013 15:29:05 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute3.internal (MEProxy); Thu, 27 Jun 2013 15:29:05 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :in-reply-to:references; s=smtpout; bh=IplkuMlWycTQexVIcTkbGFqq+ nw=; b=nlRCcyfs9MsTMkh+9aMXnlh2PsnU9FXvF50qt0P3nUoZiBpsYGadEbnMN z1rtVlyq3oG6hBoFihAUH/mptQod5oD/vEgmFMtZMrDZs1jTe5EhWIXqrnpTrei8 fT3AoPiGI/VHpTs6a52Tn+030mWeRG5ow51QJqykka2h1FoMTA= X-Sasl-enc: IIrKSUYGW8ttLqAGMOjtNeOOzNA+8PprKIwSvaaw5EGT 1372361345 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 045B268047F for ; Thu, 27 Jun 2013 15:29:04 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 09/15] Allow "apk search -x" for -e Date: Thu, 27 Jun 2013 15:28:54 -0400 Message-Id: <64e093a929f8a2363bdc54e43ddf08ba9741b46a.1372361242.git.dubiousjim@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- 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)" }, -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---