Bug 5405 - "битый" симлинк после обновления пакета до версии 2.8.21-alt1
Summary: "битый" симлинк после обновления пакета до версии 2.8.21-alt1
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: mod_ssl-doc (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Michael Shigorin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-27 12:00 MSD by Andrei Bulava
Modified: 2005-08-25 12:11 MSD (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Bulava 2004-10-27 12:00:54 MSD
Вывод apt-get dist-upgrade озадачил следующим:

10: mod_ssl-doc              ########################################### [100%]
ln: creating symbolic link `/var/www/html/addon-modules/mod_ssl' to `/usr/share/
doc/mod_ssl-2.8.21': File exists

Проверил, оказалось - после обновления появился "битый" симлинк:

# ls -al /var/www/html/addon-modules|grep mod_ssl
lrwxrwxrwx  1 root webmaster   29 Sep 20 09:37 mod_ssl ->
/usr/share/doc/mod_ssl-2.8.19

Дальше всё просто ;-)

$ rpm -q --scripts mod_ssl-doc        
postinstall scriptlet (through /bin/sh):
ln -s /usr/share/doc/mod_ssl-2.8.21 \
        /var/www/html/addon-modules/mod_ssl ||:
postuninstall scriptlet (through /bin/sh):
if [ $1 = 0 ]; then
    /bin/rm -f /var/www/html/addon-modules/mod_ssl
fi

Если в %post будет ln -sf ..., то обновление будет проходить успешно.
Comment 1 Michael Shigorin 2004-10-27 12:58:46 MSD
fixed in 2.8.21-alt2
Comment 2 Dmitry V. Levin 2004-10-27 13:33:55 MSD
Где этот -alt2?
Comment 3 Michael Shigorin 2004-10-27 13:46:08 MSD
На localhost.  Сейчас уйдёт в incoming.
Comment 4 Michael Shigorin 2005-08-25 12:11:58 MSD
* Wed Oct 27 2004 Dmitry V. Levin <ldv@altlinux.org> 2.8.21-alt2%release_tag
- %name-doc, %name-sxnet:
  + fixed %%post scripts (#5405).