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