ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Pavel Solntsev <p_solntsev_devel@meta.ua>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] %postun in spec
Date: Thu, 27 Nov 2008 17:15:47 +0200
Message-ID: <492EB9A3.1060809@meta.ua> (raw)
In-Reply-To: <20081127145618.GA32373@wo.int.altlinux.org>

Dmitry V. Levin пишет:
> On Thu, Nov 27, 2008 at 04:49:25PM +0200, Pavel Solntsev wrote:
>   
>> Можно ли в разделе %postun спек файла вставить нечто вроде
>>
>> %postun
>> %clean_menus
>>     
>
> %clean_menus уже устарел и его надо убрать
>   
напомните пожалуйста что тепер указывается в секиях %post* вместо
устаревших? или все необходимые
команды внесены в сам макрос %post*
>   
>> if [ -d /usr/share/doc/%name-%version ]; then
>>     rm -fr /usr/share/doc/%name-%version
>> fi
>>     
>
> Никогда так не делайте.
>
>   
спасибо за предупреждение. Нибуду.
>> # желательно удалять директорию /usr/share/doc/%name-%version при
>> обновлении программы
>> # замечал что очень часто при сносе пакета остаються пустые директории 
>> в /usr/share/doc
>>     
>
> Для того, чтобы пустые каталоги /usr/share/doc/%name-%version удалялись
> при обновлении/удалении пакетов, необходимо и достаточно не забывать
> упаковывать эти каталоги во всех пакетах, которые содержат свои файлы
> в этих каталогах.  Это правило справедливо и для других каталогов,
> совместно используемых несколькими подпакетами одного пакета.
>
>   
файлы и каталоги создаются макросом %dos. Наличие его в секции %files
является ли достаточным условием для выполнения ваших рекомендаций или нет?


  reply	other threads:[~2008-11-27 15:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-27 14:49 Pavel Solntsev
2008-11-27 14:56 ` Dmitry V. Levin
2008-11-27 15:15   ` Pavel Solntsev [this message]
2008-11-27 16:23     ` Andrey Rahmatullin

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=492EB9A3.1060809@meta.ua \
    --to=p_solntsev_devel@meta.ua \
    --cc=devel@lists.altlinux.org \
    /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