[obs-commits] [openSUSE/open-build-service] 7eb963: [dist] fix for upgrade obs-api 2.9 to 2.10
Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 7eb963f382b767c908c841a314be72e248bf364a
https://github.com/openSUSE/open-build-service/commit/7eb963f382b767c908c841...
Author: Frank Schreiner
From 2.9 to 2.10 obsapidelayed.service changed to obs-api-support.target. The restart and enabling of obs-api-support.target was tried in the post script. This is to late as the obsapidelayed.service is already deinstalled at this point and the systemctl command will return an error.
This change ensures that "systemctl is-enabled/is-active" will be executed
in the %pre section while upgrading the package and the state will be stored
files in the %_run_dir. In the %post section we check for this files and
try to enable/start obs-api-support.target.
NEEDS BACKPORT TO 2.10
Commit: f72009aaf4d7f8c5f877d485b991d6774612f337
https://github.com/openSUSE/open-build-service/commit/f72009aaf4d7f8c5f877d4...
Author: Henne Vogelsang
participants (1)
-
Henne Vogelsang