From: "Alexey I. Froloff" <raorn@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] fresh repocop report (apr,09)
Date: Wed, 16 Apr 2008 23:07:46 +0400
Message-ID: <20080416190746.GT9772@hell.fortress> (raw)
In-Reply-To: <20080416182751.GB32131@dad.imath.kiev.ua>
[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]
* Igor Vlasenko <vlasenko@> [080416 22:37]:
> Если есть возможность без них обойтись, то лучше без них обойтись.
Так вот это как раз тот случай, где без них не обойтись.
> Почему чужие? Свои. _cleanup_alternatives - как бы часть
> пакета alternatives (0.4 :) и /etc/alternatives/auto/* -
> приватная БД пакета alternatives.
> пересчитать-заново-альтернативы-для-ссылки $i :)
> Когда руки дойдут написать, то буду просить апстрим
> (Станислава) выпустить 0.4 :)
Это называется "заставить alternatives убирать за теми, кто не
убирает за собой сам". Вот нормальный цикл жизни любой
альтернативы:
1. При установке альтернативы надо её зарегистрировать в системе
2. При изменении - обновить ссылки
3. При удалении - "разрегистрировать" и удалить ссылки
Макрос %register_alternatives реализует пп. 1 (при установке
_пакета_) и 2 при его (_пакета_) обновлении.
Макрос %unregister_alternatives реализует п. 3 при удалении
_пакета_.
В данном случае ситуация такая, что _пакет_ обновляется, а
_альтернатива_ удаляется.
Вы предлагаете отдать п. 3 целиком и полностью на разборки пакету
alternatives. Это уже никак не проблема конкретного пакета и его
post скриптов.
> > Прочитай уже наконец /usr/share/doc/rpm-4.0.4/manual/triggers...
> читал давно.
> Наизусть не знаю. И что?
Ну хотя бы порядок выполнения %post и %trigger и что при этом
происходит с файлами. Ваш код работать всё равно не будет, если
поместить его в %unregister_alternatives. Патамушта %preun.
--
Regards,
Sir Raorn.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-04-16 19:07 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
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 [this message]
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=20080416190746.GT9772@hell.fortress \
--to=raorn@altlinux.ru \
--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