Skip to content

Commit

Permalink
Galera rpm repo - base url, module_hotfixes, createrepo
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Oct 24, 2023
1 parent 658cd97 commit 5ae0019
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions master-galera/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,16 @@ f_rpm_build.addStep(
&& cat << EOF > /packages/%(prop:branch)s/%(prop:revision)s/%(prop:buildername)s/galera.repo
[Galera-%(prop:branch)s]
name=Galera %(prop:branch)s repo (build %(prop:tarbuildnum)s)
baseurl=%(kw:url)s/%(prop:branch)s/%(prop:revision)s/%(prop:buildername)s/rpms
baseurl=%(kw:url)s/galera/%(prop:branch)s/%(prop:revision)s/%(prop:buildername)s/rpms
gpgcheck=0
EOF
cp -r rpms srpms sha256sums.txt /packages/%(prop:branch)s/%(prop:revision)s/%(prop:buildername)s/ \
case "%(prop:buildername)s" in
*rhel-8|*stream8)
echo "module_hotfixes = 1" >> /packages/%(prop:branch)s/%(prop:revision)s/%(prop:buildername)s/galera.repo
;;
esac \
&& createrepo rpms/ \
&& cp -r rpms srpms sha256sums.txt /packages/%(prop:branch)s/%(prop:revision)s/%(prop:buildername)s/ \
&& ln -sf %(prop:branch)s/%(prop:revision)s/%(prop:buildername)s/galera.repo /packages/%(prop:branch)s-latest-%(prop:buildername)s.repo \
&& sync /packages/%(prop:branch)s/%(prop:revision)s
""",
Expand Down

0 comments on commit 5ae0019

Please sign in to comment.