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 BDD23DC0091 for ; Fri, 28 Jun 2013 09:19:07 +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 046EEBC2A93; Fri, 28 Jun 2013 09:19:06 +0000 (UTC) Date: Fri, 28 Jun 2013 11:19:03 +0200 From: Natanael Copa To: Dubiousjim Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH 03/15] clarify "apk version" usage Message-ID: <20130628111903.04fbe4e7@ncopa-desktop.alpinelinux.org> In-Reply-To: <8d44ebf8d8cb40a536d78d2a4f5871fa247bb60e.1372361242.git.dubiousjim@gmail.com> References: <8d44ebf8d8cb40a536d78d2a4f5871fa247bb60e.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:48 -0400 Dubiousjim wrote: > --- > src/ver.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/src/ver.c b/src/ver.c > index 99da504..fc7df5a 100644 > --- a/src/ver.c > +++ b/src/ver.c > @@ -183,8 +183,8 @@ static int ver_main(void *pctx, struct apk_database *db, struct apk_string_array > > static struct apk_option ver_options[] = { > { 'I', "indexes", "Print description and versions of indexes" }, > - { 't', "test", "Compare two given versions" }, > - { 'c', "check", "Check if the given version string is valid" }, > + { 't', "test", "Compare two given versions, output '<' '=' or '>'" }, > + { 'c', "check", "Check the given version strings, output any that are invalid" }, > { 'a', "all", "Consider packages from all repository tags" }, > { 'l', "limit", "Limit output to packages with status matching one of LIMCHARs", > required_argument, "LIMCHARs" }, shouldn't it be a comma (,) in there? ...output '<', '=' or '>' > @@ -192,7 +192,8 @@ static struct apk_option ver_options[] = { > > static struct apk_applet apk_ver = { > .name = "version", > - .help = "Compare package versions", > + .help = "Compare package versions (in installed database vs. available) " > + "or do tests on literal version strings (with or without -rN suffixes)", > .open_flags = APK_OPENF_READ, > .context_size = sizeof(struct ver_ctx), > .num_options = ARRAY_SIZE(ver_options), Can we drop the "(with or without -rN suffixes)" part? it looks like -r -N options... otherwise looks ok. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---