[devel] Помогите разобраться с пакетированием

Michael Shigorin mike на osdn.org.ua
Пт Июл 4 21:20:53 MSK 2014


On Fri, Jul 04, 2014 at 09:09:59PM +0400, Dmitry V. Levin wrote:
> Это еще до вас, насколько я понимаю, неправильно написаны скрипты:
> сперва %post делает ln, а потом %preun делает rm.

См. самый хвост /usr/share/doc/rpm-4.0.4/manual/triggers:

For reference, here's the order in which scripts are executed on a single
package upgrade:

  new-%pre      for new version of package being installed
  ...           (all new files are installed)
  new-%post     for new version of package being installed

  any-%triggerin (%triggerin from other packages set off by new install)
  new-%triggerin
  old-%triggerun
  any-%triggerun (%triggerun from other packages set off by old uninstall)

  old-%preun    for old version of package being removed
  ...           (all old files are removed)
  old-%postun   for old version of package being removed

  old-%triggerpostun
  any-%triggerpostun (%triggerpostun from other packages set off by old un
                install)

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


Подробная информация о списке рассылки Devel