ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: devel@altlinux.ru
Subject: Re: [devel] post and postun sections
Date: Thu, 28 Nov 2002 15:00:28 +0200
Message-ID: <20021128130028.GB28238@sam-solutions.net> (raw)
In-Reply-To: <20021128155554.3eacfea9.vyt@vzljot.ru>

On Thu, Nov 28, 2002 at 03:55:54PM +0300, Vitaly Ostanin wrote:
> Hello, All!
> 
> При обновлении (rpm -Uvh) установленного пакета с секциями %post
> и %postun в spec'е сначала выполняется %post, затем %postun.
> 
> Подскажите, pls, как регулировать последовательность выполнения
> скриптов? В моём случае (alt-entities) нужно при установке пакета
> добавлять запись в /etc/xml/catalog, а при удалении - удалять
> запись. Это работает, но при обновлении пакета сначала
> добавляется запись, а потом удаляется.
> 
> Туда же - как можно указать скрипт, который не должен выполняться
> при обновлении вообще - только при установке или удалении?
%post
if [ $1 = "0" ] ; then
	действия
fi

%postun
if [ $1 = "1" ] ; then
	действия
fi


-- 
/ Alexander Bokovoy
---
Don't shout for help at night.  You might wake your neighbors.
		-- Stanislaw J. Lem, "Unkempt Thoughts"


  reply	other threads:[~2002-11-28 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-28 12:55 Vitaly Ostanin
2002-11-28 13:00 ` Alexander Bokovoy [this message]
2002-11-28 22:36   ` [devel] " Mikhail Zabaluev
2002-11-29  9:06     ` Alexander Bokovoy
2002-11-29 11:04     ` Vitaly Ostanin
2002-11-28 13:03 ` [devel] " Dmitry V. Levin

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=20021128130028.GB28238@sam-solutions.net \
    --to=a.bokovoy@sam-solutions.net \
    --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