On Tue, Jan 17, 2023 at 10:33:10AM -0000, Artur Frenszek-Iwicki wrote:
> Haven't planned on this originally, but it seems like a good idea.
> 
> Never really used Obsoletes before, so I have to ask:
> what's the dnf behaviour when a package is obsoleted by multiple packages?
> If it tries to install all of them, then that'd be okay. I'd like to
> avoid a situation where dnf decides that it prefers to upgrade by
> removing the "old" fpc package and installing only fpc-ide.

You need to add 'Obsoletes: $original_package_name < $some_version_after_split'
to both the $original_package_name subpackage and to the new split-out
subpackage. With that, dnf will install both on upgrade of 
$original_package_name.

Zbyszek
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to