From: Alexey Tourbin <at@turbinal.org>
To: devel@altlinux.ru
Subject: [devel] Re: update-alternatives links
Date: Tue, 14 Jan 2003 21:37:19 +0300
Message-ID: <20030114183719.GA30550@ungrund> (raw)
In-Reply-To: <20030114202055.57c64b6a.vsu@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
On Tue, Jan 14, 2003 at 08:20:55PM +0300, Sergey Vlasov wrote:
> rpm -q --scripts -p ~/RPM/RPMS/i686/elinks-0.4.1-alt1cvs20030114.i686.rpm
>
> ?
>
> Нельзя просто удалять альтернативу в %postun - нужно проверять на
> обновление:
>
> [ "$1" = 0 ] & /usr/sbin/update-alternatives --remove ...
Дошло. И как без этого пропустили в sisyphus? :)
Вот так -- нормально?
%post
/usr/sbin/update-alternatives \
--install %_bindir/links links %_bindir/%name 10 \
--slave %_man1dir/links.1.gz links.1.gz %_man1dir/%name.1.gz
%update_menus
%triggerpostun -- links
/usr/sbin/update-alternatives \
--install %_bindir/links links %_bindir/%name 10 \
--slave %_man1dir/links.1.gz links.1.gz %_man1dir/%name.1.gz
%postun
[ $1 = 0 ] || exit 0
/usr/sbin/update-alternatives \
--remove links %_bindir/%name
%clean_menus
--
WBR, Alexey Tourbin
BIOZAK Ltd., Russia
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-01-14 18:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-14 17:09 [devel] " Alexey Tourbin
2003-01-14 17:20 ` Sergey Vlasov
2003-01-14 18:37 ` Alexey Tourbin [this message]
2003-01-15 13:56 ` [devel] " Michael Shigorin
2003-01-21 0:07 ` Alexey Tourbin
2003-01-14 17:21 ` Alexey Tourbin
2003-01-15 9:10 ` [devel] " Stanislav Ievlev
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=20030114183719.GA30550@ungrund \
--to=at@turbinal.org \
--cc=devel@altlinux.ru \
/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