Re: dnf error during upgrade that changes a directory into a symlink

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

 



On 12/20/2016 01:15 PM, Till Hofmann wrote:
Hi all,

I have a package that contains a subdirectory which is changed to a
symlink in the next release. When I upgrade, I get the following error:

Error: Transaction check error:
  file /usr/share/symlinktest/dir/subdir from install of
symlinktest-1-2.fc25.x86_64 conflicts with file from package
symlinktest-1-1.fc25.x86_64

This is a classical rpm-packaging trap ;)

Any hints are welcome.
In short: This is a case rpm can't handle properly.
One common way to work around this is to resort to lua-scripts:

c.f. https://fedoraproject.org/wiki/Packaging:Guidelines#Replacing_a_symlink_to_a_directory_or_a_directory_to_any_type_file

and
https://fedoraproject.org/wiki/Packaging:Directory_Replacement

BTW: The origin of this isn't dnf, it's rpm.

Ralf
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[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