ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [SCM] packages/sisyphus_check: heads/sisyphus
Date: Tue, 1 Jan 2019 04:23:30 +0300
Message-ID: <20190101012330.GA30145@altlinux.org> (raw)
In-Reply-To: <20181231180802.B361A8440A0F@gitery.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1729 bytes --]

Hi,

On Mon, Dec 31, 2018 at 06:08:02PM +0000, Vladimir D. Seleznev wrote:
> Update of /people/vseleznv/packages/sisyphus_check.git
> 
> Changes statistics since `0.8.45-alt1_lcc' follows:
>  sisyphus_check/sisyphus_check.d/090-check-nvr | 4 ++--
>  sisyphus_check/sisyphus_check.spec            | 5 ++++-
>  2 files changed, 6 insertions(+), 3 deletions(-)
> 
> Changelog since `0.8.45-alt1_lcc' follows:
> commit 4492627dbc313159208167883c58f79be3127377
> Author: Vladimir D. Seleznev <vseleznv@altlinux.org>
> Date:   Mon Dec 31 21:07:25 2018 +0300
> 
>     0.8.46-alt1
>     
>     - 090-check-nvr: make version and release check more strict
> 
> commit ad0b8da88affed1a222e21e4dde3ad443e6a5340
> Author: Vladimir D. Seleznev <vseleznv@altlinux.org>
> Date:   Mon Dec 31 21:04:02 2018 +0300
> 
>     090-check-nvr: make version and release check more strict
> 
> Full diff since `0.8.45-alt1_lcc' follows:
> diff --git a/sisyphus_check/sisyphus_check.d/090-check-nvr b/sisyphus_check/sisyphus_check.d/090-check-nvr
> index 6cb6f70..1c99af7 100644
> --- a/sisyphus_check/sisyphus_check.d/090-check-nvr
> +++ b/sisyphus_check/sisyphus_check.d/090-check-nvr
> @@ -16,12 +16,12 @@ check_nvr()
>  		rc=1
>  	fi
>  
> -	if printf %s "$rpm_version" |grep -qs '[%<=>]'; then
> +	if ! printf %s "$rpm_version" |grep -Eqs '^[[:alnum:]._+]+$'; then

У нас в Сизифе есть пакет ongres-scram-1.0.0~beta.2-alt1_5jpp8.src.rpm,
который эта проверка запретит.

Допустим, я догадываюсь, зачем нужна именно такая более строгая проверка,
но это нужно указать явно в commit message.

По технике, я бы предпочёл

	if printf %s "$rpm_version" |grep -qvx '[[:alnum:]][[:alnum:]._+]*'; then


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

       reply	other threads:[~2019-01-01  1:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-01  1:23 ` Dmitry V. Levin [this message]
2019-01-01  2:19   ` Vladimir D. Seleznev
2019-01-01 22:31   ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190101012330.GA30145@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git