* [devel] update-alternatives links
@ 2003-01-14 17:09 Alexey Tourbin
2003-01-14 17:20 ` Sergey Vlasov
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Alexey Tourbin @ 2003-01-14 17:09 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]
Замечено: если в системе установлены links1 и elinks, то после
обновления elinks симлинк /etc/alternatives/links "сбивается" на
/usr/bin/links1.
Может кто-нибудь знающий посмотрит и объяснит мне, в чем здесь дело?
$ sudo apt-get install links1 elinks
Reading Package Lists... Done
Collecting File Provides... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
elinks links1
0 packages upgraded, 2 newly installed, 0 removed and 651 not upgraded.
Need to get 0B/900kB of archives. After unpacking 2269kB will be used.
Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)...
Preparing... ############################################################### [100%]
1: elinks ############################################################### [ 50%]
2: links1 ############################################################### [100%]
$ ls -l /etc/alternatives/links
lrwxrwxrwx 1 root rpm 15 Jan 14 20:00 /etc/alternatives/links -> /usr/bin/elinks
$ sudo rpm -Uvh ~/RPM/RPMS/i686/elinks-0.4.1-alt1cvs20030114.i686.rpm
Preparing... ######################################################################
elinks ######################################################################
$ ls -l /etc/alternatives/links
lrwxrwxrwx 1 root rpm 15 Jan 14 20:00 /etc/alternatives/links -> /usr/bin/links1
$
--
WBR, Alexey Tourbin
BIOZAK Ltd., Russia
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] update-alternatives links
2003-01-14 17:09 [devel] update-alternatives links Alexey Tourbin
@ 2003-01-14 17:20 ` Sergey Vlasov
2003-01-14 18:37 ` [devel] " Alexey Tourbin
` (2 more replies)
2003-01-14 17:21 ` Alexey Tourbin
2003-01-15 9:10 ` [devel] " Stanislav Ievlev
2 siblings, 3 replies; 7+ messages in thread
From: Sergey Vlasov @ 2003-01-14 17:20 UTC (permalink / raw)
To: devel
On Tue, 14 Jan 2003 20:09:09 +0300
Alexey Tourbin <at@turbinal.org> wrote:
> Замечено: если в системе установлены links1 и elinks, то после
> обновления elinks симлинк /etc/alternatives/links "сбивается" на
> /usr/bin/links1.
>
> Может кто-нибудь знающий посмотрит и объяснит мне, в чем здесь дело?
> $ ls -l /etc/alternatives/links
> lrwxrwxrwx 1 root rpm 15 Jan 14 20:00 /etc/alternatives/links -> /usr/bin/elinks
> $ sudo rpm -Uvh ~/RPM/RPMS/i686/elinks-0.4.1-alt1cvs20030114.i686.rpm
> Preparing... ######################################################################
> elinks ######################################################################
> $ ls -l /etc/alternatives/links
> lrwxrwxrwx 1 root rpm 15 Jan 14 20:00 /etc/alternatives/links -> /usr/bin/links1
rpm -q --scripts -p ~/RPM/RPMS/i686/elinks-0.4.1-alt1cvs20030114.i686.rpm
?
Нельзя просто удалять альтернативу в %postun - нужно проверять на
обновление:
[ "$1" = 0 ] & /usr/sbin/update-alternatives --remove ...
^ permalink raw reply [flat|nested] 7+ messages in thread
* [devel] Re: update-alternatives links
2003-01-14 17:20 ` Sergey Vlasov
@ 2003-01-14 18:37 ` Alexey Tourbin
2003-01-15 13:56 ` Michael Shigorin
2003-01-21 0:07 ` Alexey Tourbin
2 siblings, 0 replies; 7+ messages in thread
From: Alexey Tourbin @ 2003-01-14 18:37 UTC (permalink / raw)
To: devel
[-- 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 --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [devel] Re: update-alternatives links
2003-01-14 17:20 ` Sergey Vlasov
2003-01-14 18:37 ` [devel] " Alexey Tourbin
@ 2003-01-15 13:56 ` Michael Shigorin
2003-01-21 0:07 ` Alexey Tourbin
2 siblings, 0 replies; 7+ messages in thread
From: Michael Shigorin @ 2003-01-15 13:56 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 213 bytes --]
On Tue, Jan 14, 2003 at 08:20:55PM +0300, Sergey Vlasov wrote:
> [ "$1" = 0 ]
Это где-то документировано?
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [devel] Re: update-alternatives links
2003-01-14 17:20 ` Sergey Vlasov
2003-01-14 18:37 ` [devel] " Alexey Tourbin
2003-01-15 13:56 ` Michael Shigorin
@ 2003-01-21 0:07 ` Alexey Tourbin
2 siblings, 0 replies; 7+ messages in thread
From: Alexey Tourbin @ 2003-01-21 0:07 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 351 bytes --]
On Tue, Jan 14, 2003 at 08:20:55PM +0300, Sergey Vlasov wrote:
> Нельзя просто удалять альтернативу в %postun - нужно проверять на
> обновление:
>
> [ "$1" = 0 ] & /usr/sbin/update-alternatives --remove ...
OK, заливаю исправленные версии в incoming/Sisyphus.
Или теперь надо заливать в incoming/Master?
--
WBR, Alexey Tourbin
BIOZAK Ltd., Russia
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [devel] Re: update-alternatives links
2003-01-14 17:09 [devel] update-alternatives links Alexey Tourbin
2003-01-14 17:20 ` Sergey Vlasov
@ 2003-01-14 17:21 ` Alexey Tourbin
2003-01-15 9:10 ` [devel] " Stanislav Ievlev
2 siblings, 0 replies; 7+ messages in thread
From: Alexey Tourbin @ 2003-01-14 17:21 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
On Tue, Jan 14, 2003 at 08:09:09PM +0300, Alexey Tourbin wrote:
> Замечено: если в системе установлены links1 и elinks, то после
> обновления elinks симлинк /etc/alternatives/links "сбивается" на
> /usr/bin/links1.
Дополнение:
$ rpm -q elinks
elinks-0.4.1-alt1cvs20030114
$ /usr/sbin/update-alternatives --display links
links - status is auto.
link currently points to /usr/bin/links1
/usr/bin/links1 - priority 10
slave links.1.gz: /usr/share/man/man1/links1.1.gz
Current `best' version is /usr/bin/links1.
$
--
WBR, Alexey Tourbin
BIOZAK Ltd., Russia
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] update-alternatives links
2003-01-14 17:09 [devel] update-alternatives links Alexey Tourbin
2003-01-14 17:20 ` Sergey Vlasov
2003-01-14 17:21 ` Alexey Tourbin
@ 2003-01-15 9:10 ` Stanislav Ievlev
2 siblings, 0 replies; 7+ messages in thread
From: Stanislav Ievlev @ 2003-01-15 9:10 UTC (permalink / raw)
To: devel
Кстати в тему.
Я запланировал новые update-alternatives. Все пожелания по
функциональности посылайте личным мылом мне - буду собирать в копилку ;)
On Tue, Jan 14, 2003 at 08:09:09PM +0300, Alexey Tourbin wrote:
> Замечено: если в системе установлены links1 и elinks, то после
> обновления elinks симлинк /etc/alternatives/links "сбивается" на
> /usr/bin/links1.
>
> Может кто-нибудь знающий посмотрит и объяснит мне, в чем здесь дело?
>
> $ sudo apt-get install links1 elinks
> Reading Package Lists... Done
> Collecting File Provides... Done
> Building Dependency Tree... Done
> The following NEW packages will be installed:
> elinks links1
> 0 packages upgraded, 2 newly installed, 0 removed and 651 not upgraded.
> Need to get 0B/900kB of archives. After unpacking 2269kB will be used.
> Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)...
> Preparing... ############################################################### [100%]
> 1: elinks ############################################################### [ 50%]
> 2: links1 ############################################################### [100%]
> $ ls -l /etc/alternatives/links
> lrwxrwxrwx 1 root rpm 15 Jan 14 20:00 /etc/alternatives/links -> /usr/bin/elinks
> $ sudo rpm -Uvh ~/RPM/RPMS/i686/elinks-0.4.1-alt1cvs20030114.i686.rpm
> Preparing... ######################################################################
> elinks ######################################################################
> $ ls -l /etc/alternatives/links
> lrwxrwxrwx 1 root rpm 15 Jan 14 20:00 /etc/alternatives/links -> /usr/bin/links1
> $
>
> --
> WBR, Alexey Tourbin
> BIOZAK Ltd., Russia
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-01-21 0:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 17:09 [devel] update-alternatives links Alexey Tourbin
2003-01-14 17:20 ` Sergey Vlasov
2003-01-14 18:37 ` [devel] " Alexey Tourbin
2003-01-15 13:56 ` Michael Shigorin
2003-01-21 0:07 ` Alexey Tourbin
2003-01-14 17:21 ` Alexey Tourbin
2003-01-15 9:10 ` [devel] " Stanislav Ievlev
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