Skip to content
Snippets Groups Projects
Commit f2de5ac0 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

branch-obs: split the creation of OBS repos for -security, -updates and...

branch-obs: split the creation of OBS repos for -security, -updates and -backports in two steps due to OBS constraints

OBS refuses to create repo with nonexistent dependencies and because
we have circular dependencies between target and development,
we first need to create repo without dependencies and later re-add
dependencies.

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent c4895b8c
No related branches found
No related tags found
1 merge request!217Branching improvements
......@@ -82,16 +82,27 @@ obs-prjconf-update(){
if [ $DEV_RELEASE -ne 1 ]
then
# OBS refuses to create repo with nonexistent dependencies and because
# we have circular dependencies between target and development,
# we first need to create repo without dependencies.
for chan in $CHANNELS
do
# For project meta config
$RUN osc meta prj $OSNAME:$PREV_STABLE_RELEASE:$chan:$comp | sed "s/$PREV_STABLE_RELEASE/$NEXT_RELEASE/g" > osc_meta.txt
$RUN cat osc_meta.txt
$RUN osc meta prj $OSNAME:$NEXT_RELEASE:$chan:$comp -F osc_meta.txt
# For project config
$RUN osc meta prjconf $OSNAME:$PREV_STABLE_RELEASE:$chan:$comp | sed "s/$PREV_STABLE_RELEASE/$NEXT_RELEASE/g" > osc_meta.txt
$RUN cat osc_meta.txt
$RUN osc meta prjconf $OSNAME:$NEXT_RELEASE:$chan:$comp -F osc_meta.txt
# For project meta config
$RUN osc meta prj $OSNAME:$PREV_STABLE_RELEASE:$chan:$comp | sed "s/$PREV_STABLE_RELEASE/$NEXT_RELEASE/g" | sed '/path project/d' > osc_meta.txt
$RUN cat osc_meta.txt
$RUN osc meta prj $OSNAME:$NEXT_RELEASE:$chan:$comp -F osc_meta.txt
done
# Now that all the repos have been created, let's add dependencies between them.
for chan in $CHANNELS
do
# For project meta config
$RUN osc meta prj $OSNAME:$PREV_STABLE_RELEASE:$chan:$comp | sed "s/$PREV_STABLE_RELEASE/$NEXT_RELEASE/g" > osc_meta.txt
$RUN cat osc_meta.txt
$RUN osc meta prj $OSNAME:$NEXT_RELEASE:$chan:$comp -F osc_meta.txt
# For project config
$RUN osc meta prjconf $OSNAME:$PREV_STABLE_RELEASE:$chan:$comp | sed "s/$PREV_STABLE_RELEASE/$NEXT_RELEASE/g" > osc_meta.txt
$RUN cat osc_meta.txt
$RUN osc meta prjconf $OSNAME:$NEXT_RELEASE:$chan:$comp -F osc_meta.txt
done
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment