ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <sir_raorn@immo.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Q: rpm, %post и XXX.d/...
Date: Wed, 29 Oct 2003 17:50:28 +0300
Message-ID: <20031029145028.GR6596@inferno.immo> (raw)
In-Reply-To: <20031029134755.GA21841@basalt.office.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

* Dmitry V. Levin <ldv@altlinux.org> [031029 16:49]:
> > Проблема в другом - в момент выполнения %post в некоем каталоге,
> > с которым работает update-XXX, могут находиться файлы, которые
> > есть только в предыдущей версии этого пакета и они будут тоже
> > обработаны.
> Тогда придётся снять проверку на [ "$1" = 0 ] и получится a la
> старый ldconfig:
> %post -p /path/to/update-XXX
> %postun -p /path/to/update-XXX

Опять некрасиво. Скрипт из %post (опять беру случай с ruby.txt в
vim-common) выдаст ошибку, но скрипт из %postun всё исправит.
Работать будет, но "как-то неаккуратненько" (сколько было
вопросов про Input is not from terminal, а тут такое ;-)

В %post делаем проверку на [ "$1" = 1 ], в %postun проверку
убираем совсем. При новой установке сработает %post, при апгрейде
и удалении - только %postun.

-- 
Regards, Sir Raorn.
-------------------
Я прекрасно понимаю, что патч хороший.. но если сама его идея уже
морально устарела... зачем он нужен? ;-)
		-- rider in devel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-10-29 14:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-29 12:25 Alexey I. Froloff
2003-10-29 12:49 ` Dmitry V. Levin
2003-10-29 13:25   ` Alexey I. Froloff
2003-10-29 13:33     ` Dmitry V. Levin
2003-10-29 13:41       ` Alexey I. Froloff
2003-10-29 13:47         ` Dmitry V. Levin
2003-10-29 14:50           ` Alexey I. Froloff [this message]

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=20031029145028.GR6596@inferno.immo \
    --to=sir_raorn@immo.ru \
    --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