ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] fresh repocop report (apr,09)
Date: Wed, 16 Apr 2008 20:15:29 +0300
Message-ID: <20080416171529.GA31304@dad.imath.kiev.ua> (raw)
In-Reply-To: <20080416170251.GP9772@hell.fortress>

On Wed, Apr 16, 2008 at 09:02:51PM +0400, Alexey I. Froloff wrote:
> * Igor Vlasenko <vlasenko@> [080416 20:45]:
> > если в %preun просто %unregister_alternatives,
> > не %unregister_alternatives_always,
> > то из - за [ "$1" = 0 ] || exit 0;
> > он всегда exit 0; поскольку при upgrade "$1">0.
> > Bugfeature.
> Какой нафиг баг?  Это нормальное поведение.  Hint: %preun
> отрабатывает после %post.  При чём %preun старого пакета, а %post
> нового.

есть foo-1.0 c альтернативами и
%post
%register_alternatives %name
%postun
%unregister_alternatives %name.

обновляем ее до foo-2.0 без альтернатив и без бубнов.

правильно написанная %unregister_alternatives %name
в %postun foo-1.0 должна была бы при %postun сделать 
unregister_alternatives %name, без бубнов. 
Она этого не делает, поэтому приходится
в foo-2.0 вызывать шамана с бубном.

Это я имею в виду, когда говорю о bugfeature.

-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



  reply	other threads:[~2008-04-16 17:15 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09 15:43 Igor Vlasenko
2008-04-09 16:25 ` Andrey Rahmatullin
2008-04-09 16:27   ` Led
2008-04-11 10:07     ` Motsyo Gennadi aka Drool
2008-04-11 10:22       ` Igor Vlasenko
2008-04-09 18:38 ` Andrey Rahmatullin
2008-04-10  7:55   ` Igor Vlasenko
2008-04-10  9:11     ` [devel] dosbox-russian alternatives misuse Kirill Maslinsky
2008-04-16 16:18     ` [devel] fresh repocop report (apr,09) Andrey Rahmatullin
2008-04-16 16:27       ` Igor Vlasenko
2008-04-16 16:32       ` Alexey I. Froloff
2008-04-16 16:33         ` Andrey Rahmatullin
2008-04-16 16:36           ` Igor Vlasenko
2008-04-16 17:02             ` Alexey I. Froloff
2008-04-16 17:15               ` Igor Vlasenko [this message]
2008-04-16 17:20                 ` Alexey I. Froloff
2008-04-16 17:30                   ` Igor Vlasenko
2008-04-16 17:41                     ` Alexey I. Froloff
2008-04-16 18:04                       ` Igor Vlasenko
2008-04-16 18:17                         ` Alexey I. Froloff
2008-04-16 18:27                           ` Igor Vlasenko
2008-04-16 19:07                             ` Alexey I. Froloff
2008-04-16 19:19                               ` Igor Vlasenko
2008-04-16 19:28                                 ` Alexey I. Froloff
2008-04-16 19:29                                   ` Igor Vlasenko
2008-04-16 16:37           ` Alexey I. Froloff

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=20080416171529.GA31304@dad.imath.kiev.ua \
    --to=vlasenko@imath.kiev.ua \
    --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