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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to