Re: replacing folders with symlinks leads to rpm cpio rename errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



triggers could be used too  (to rm -fr the directory installed by old versions of the package)

Another *be careful* warning for this one too.

----- Original Message -----
From: "Panu Matilainen" <pmatilai@xxxxxxxxxxxxxxx>
To: devel@xxxxxxxxxxxxxxxxxxxxxxx
Sent: Friday, September 21, 2012 4:17:27 AM
Subject: Re: replacing folders with symlinks leads to rpm cpio rename errors

On 09/21/2012 10:27 AM, Ralf Corsepius wrote:
> On 09/21/2012 09:22 AM, Julian Sikorski wrote:
>> W dniu 21.09.2012 08:53, Julian Sikorski pisze:
>>> Hi list,
>>>
>>> one of the updates I am preparing is supposed to replace some of the
>>> folders with symlinks. Unfortunately, this leads to rpm cpio: rename
>>> errors upon an update attempt. Is there a standard way of dealing
>>> with this?
>>>
>>> Regards,
>>> Julian
>>>
>> It seems to have gone through upon the second attempt. Odd.
>
> Was the directory empty before installing the rpm replacing the
> directory with a symlink?
>
> I could be wrong, but IIRC, current rpm is only able to handle
> dir->symlink replacers when "dir"s are empty.

A directory (empty or not) can't be automatically replaced by anything 
else (symlink or otherwise) in the existing rpm versions. If absolutely 
necessary, it can be accomplished by doing the necessary renames and 
symlinks in "%pretrans -p <lua>" scriptlet, but that should be only seen 
as the last resort as its not exactly a safe operation.

	- Panu -

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux