X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D62AEDC02F5 for ; Sun, 30 Jun 2013 08:02:20 +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 CFB0020F7D for ; Sun, 30 Jun 2013 04:02:19 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute3.internal (MEProxy); Sun, 30 Jun 2013 04:02:19 -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=iEtqJtU1E8xJL4LWS9cQsNYrK PM=; b=GvG9U+bOgmHbgd/63Gc+nFcCkBvqzFrXA23ysr2A7X2OCyxVcpNGOF6xb 3/xpMWG0i3fJJ3jzZdtaRe6BvoqcG1KGK4venG+jcE5FABoC+1gUJCtE6gSM0kE6 ObgM2rHjwhccs4Zeo5HK6pWtm63VIrj/zFH66sh5HsEnfjwYeA= X-Sasl-enc: 6VVNmdaZHAoSAnXOZczeYPEGq5EeseiBsPrDM3tnjPbM 1372579339 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 9CF6A680254 for ; Sun, 30 Jun 2013 04:02:19 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 1/2] Allow "apk search -x" for -e Date: Sun, 30 Jun 2013 04:02:18 -0400 Message-Id: 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 7ccf98a..c85892b 100644 --- a/src/search.c +++ b/src/search.c @@ -79,6 +79,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': @@ -166,7 +167,8 @@ static int search_main(void *pctx, struct apk_database *db, struct apk_string_ar static struct apk_option search_options[] = { { '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", "Print reverse dependencies of package" }, }; -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---