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] [PATCH] gb-task-check-noarch-i: check package scriptlets
Date: Tue, 21 Jul 2020 15:28:45 +0300
Message-ID: <20200721122845.GC17962@altlinux.org> (raw)
In-Reply-To: <20200721121512.GA2406014@portlab>

On Tue, Jul 21, 2020 at 03:15:12PM +0300, Vladimir D. Seleznev wrote:
> On Tue, Jul 21, 2020 at 03:02:16PM +0300, Dmitry V. Levin wrote:
> > On Tue, Jul 21, 2020 at 02:57:26PM +0300, Vladimir D. Seleznev wrote:
> > > On Tue, Jul 21, 2020 at 02:49:27PM +0300, Dmitry V. Levin wrote:
> > > > On Tue, Jul 21, 2020 at 02:00:31AM +0300, Vladimir D. Seleznev wrote:
> > > > > noarch packages should have equal scriptlets across all arches.
> > > > > New function dump_scriptlets() prints contents of RPM package scriptlets.
> > > > > 
> > > > > * dump_scriptlets(): New function.
> > > > > * dump_noarch(): Use dump_scriptlets().
> > > > > * dump_arch(): Use dump_scriptlets().
> > > > > 
> > > > > Reported-by: Ivan Zakharyaschev <imz@altlinux.org>
> > > > > ---
> > > > >  gb/gb-task-check-noarch-i | 11 +++++++++++
> > > > >  1 file changed, 11 insertions(+)
> > > > > 
> > > > > diff --git a/gb/gb-task-check-noarch-i b/gb/gb-task-check-noarch-i
> > > > > index 2e38b6c..2527c84 100755
> > > > > --- a/gb/gb-task-check-noarch-i
> > > > > +++ b/gb/gb-task-check-noarch-i
> > > > > @@ -79,10 +79,20 @@ dump_deps()
> > > > >  	rpmquery --qf "$R$P$O$C" -p "$1"
> > > > >  }
> > > > >  
> > > > > +dump_scriptlets()
> > > > > +{
> > > > > +	for rpmtag in POSTIN POSTINPROG POSTUN POSTUNPROG PREIN PREINPROG PREUN PREUNPROG; do
> > > > 
> > > > $ rpmquery --querytags |grep 'PROG$' |wc -l
> > > > 10
> > > 
> > > А они все нужны? Большинство из них не используются. Добавлю не
> > > достающие.
> > 
> > Хорошо бы не забыть парные им
> > $ rpmquery --querytags |sed -n '/PROG$/{s///p;s/$/S/p}' |sort |comm -12 - <(rpmquery --querytags |sort) |wc -l
> > 10
> 
> Я просто не уверен, что они все нужны. Из нужных отсутствуют разве что
> TRIGGERSCRIPTS и TRIGGERSCRIPTPROG.

Зачем думать о том, используются они сейчас или нет.


-- 
ldv


  reply	other threads:[~2020-07-21 12:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-20 22:54 Vladimir D. Seleznev
2020-07-20 23:00 ` Vladimir D. Seleznev
2020-07-21 11:49   ` Dmitry V. Levin
2020-07-21 11:57     ` Vladimir D. Seleznev
2020-07-21 12:02       ` Dmitry V. Levin
2020-07-21 12:15         ` Vladimir D. Seleznev
2020-07-21 12:28           ` Dmitry V. Levin [this message]
2020-07-21 12:40   ` Vladimir D. Seleznev
2020-07-21 12:42     ` Vladimir D. Seleznev
2020-07-27 12:34     ` 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=20200721122845.GC17962@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