On 7/12/19 3:51 AM, Matthias Bach wrote:
Hi,
Am Donnerstag, 11. Juli 2019, 15:52:57 CEST schrieb Maurizio Galli (MauG):
Also, because the old and new package share the same version (no update upstream, only the package), the old package does not seem to be replaced by the new renamed one. Does this mean that will have to delete the old package from Factory immediately to avoid duplicates? Is there a nicer way to deal with it?
Isn't this exactly what the package version, or "Release" as it is called in the spec file, is for; to indicate that the package changed despite the upstream still being the same?
I know the build service does magic things to the Release field. But AFAIR it only ever increments, so bumping it sufficiently in the spec of the new package should give you the desired result.
Kind Regards, Matthias
Thank you Matthias! Bumping up the Realease and using the following worked: Provides: xfce4-panel-plugin-pulseaudio = %{version}-%{release} Obsoletes: xfce4-panel-plugin-pulseaudio < %{version}-%{release} Installing the new package replaces the old one. However the subpackages such as xfce4-panel-plugin-pulseaudio-lang created by the macro %lang_package is not affected. Neither the -debuginfo and -debugsource packages are. -- Maurizio Galli (MauG) Xfce Team https://en.opensuse.org/Portal:Xfce -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org