How can i send packages from Factory to maintenance?

Hi,

On 12/12/18 12:41 PM, Eric Schirra wrote:
> But how can i send Factory to maintenance?


Find packages that can receive maintenance updates:

$ osc maintained phpMyAdmin
openSUSE:Backports:SLE-12/phpMyAdmin
openSUSE:Backports:SLE-15:Update/phpMyAdmin
openSUSE:Leap:15.0:Update/phpMyAdmin
openSUSE:Leap:42.3:Update/phpMyAdmin

Check if the simple version update works:

$ osc ls openSUSE:Backports:SLE-12/phpMyAdmin
_link
# -> openSUSE:Backports:SLE-12 phpMyAdmin.8652 (latest)
phpMyAdmin-4.8.3-all-languages.tar.xz
[...]

$ osc ls openSUSE:Leap:42.3:Update/phpMyAdmin
_link
# -> openSUSE:Leap:42.3:Update phpMyAdmin.8652 (latest)
phpMyAdmin-4.8.3-all-languages.tar.xz

So yes that's a straightforward minor version update. Make a maintenance
branch:

$ osc mbranch phpMyAdmin
A working copy of the maintenance branch can be checked out with:

osc co home:AndreasStieger:branches:OBS_Maintained:phpMyAdmin

This prepared a single incident with branched package for each release:

$ osc ls home:AndreasStieger:branches:OBS_Maintained:phpMyAdmin
phpMyAdmin.openSUSE_Backports_SLE-12
phpMyAdmin.openSUSE_Backports_SLE-15_Update
phpMyAdmin.openSUSE_Leap_15.0_Update
phpMyAdmin.openSUSE_Leap_42.3_Update

Then make the update in these packages. Since you already have it, you
can copypac it (-e to expand, and -K to keep the link):

$ osc copypac -e -K \
server:php:applications/phpMyAdmin \
home:AndreasStieger:branches:OBS_Maintained:phpMyAdmin \
phpMyAdmin.openSUSE_Leap_15.0_Update

And do so for the others.

When done (and it's building), submit the whole update:

$ osc mr home:AndreasStieger:branches:OBS_Maintained:phpMyAdmin -m
"security update for phpMyAdmin boo#1119245"


Good luck,

Andreas

--

Andreas Stieger <astieger@suse.de>
Head of Product Security
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
HRB 21284 (AG Nürnberg)