ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] upgrade directory to symlink
Date: Thu, 6 May 2010 14:56:31 +0400
Message-ID: <20100506105631.GA20088@mw.office.seiros.ru> (raw)
In-Reply-To: <y2ha4ab440f1005050412p5de663f2t2ab0c833468fbee8@mail.gmail.com>

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

On Wed, May 05, 2010 at 02:12:37PM +0300, Mykola S. Grechukh wrote:

MSG> был в пакете каталог %_datadir/hello. А теперь он стал симлинком. И
MSG> rpm -U говорит : error: unpacking of archive failed on file
MSG> /usr/share/hello: cpio: rename failed - Is a directory
MSG> Не слишком ли цинично будет сделать
MSG> %pre
MSG> [ -d %_datadir/hello ] && rm -rf %_datadir/hello

А почему не mv %_datadir/hello/* туда-куда-ведет-симлинк/ ?

И, наверное, стоит еще проверять версию пакета, и делать такое только при
обновлении.

-- 
С уважением, Денис

http://mithraen.ru/
----------------------------------------------------------------------------

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

  parent reply	other threads:[~2010-05-06 10:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05 11:12 Mykola S. Grechukh
2010-05-05 11:15 ` [devel] [solved] " Mykola S. Grechukh
2010-05-05 11:38   ` Sergey Y. Afonin
2010-05-06 10:56 ` Денис Смирнов [this message]
2010-05-06 10:59   ` [devel] " Mykola S. Grechukh
2010-05-06 11:51   ` Sergey Y. Afonin
2010-05-06 11:53     ` Mykola S. Grechukh
2010-05-06 13:38       ` Kharitonov A. Dmitry
2010-05-06 13:50         ` Mykola S. Grechukh

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=20100506105631.GA20088@mw.office.seiros.ru \
    --to=mithraen@altlinux.ru \
    --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