Mailinglist Archive: opensuse-packaging (284 mails)

< Previous Next >
Re: [opensuse-packaging] RPM how to change a directory to a link
  • From: yersinia <yersinia.spiros@xxxxxxxxx>
  • Date: Thu, 3 Feb 2011 15:15:18 +0100
  • Message-id: <AANLkTi=uecUX=jF3Qb+8BrA6hoeg4Fs_9zw0Jvf0XuAs@mail.gmail.com>
On Thu, Feb 3, 2011 at 12:58 PM, Johannes Meixner <jsmeix@xxxxxxx> wrote:

Hello,

when there is in foo-1.rpm a directory /somewhere/foo/ but
in foo-2.rpm it is a link /somewhere/foo -> /elsewhere/bar
then "rpm --upgrade foo" fails with
--------------------------------------------------------------
error: unpacking of archive failed on file /somewhere/foo:
 cpio: rename failed - Is a directory
--------------------------------------------------------------

What is the officially blessed method to support such a change
in the software in the RPM package of such a software?

Well, strange enough the metod for doing this via lua and pretrans was never
documentated
but it is know today ( more or less) . Perhaps these link can help you

https://bugzilla.redhat.com/show_bug.cgi?id=447156
https://bugs.launchpad.net/rpm/+bug/633636/comments/3

hth
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
References