Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit c82eb02

Browse files
authored
Set section for prerelease debs (#10391)
This is part of fixing #6116: we want to put RC debs into a different place than release debs, so reprepro has to be able to tell them apart.
1 parent 07e0992 commit c82eb02

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

changelog.d/10391.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
When building Debian packages for prerelease versions, set the Section accordingly.

docker/build_debian.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ cd /synapse/build
1515
dch -M -l "+$DIST" "build for $DIST"
1616
dch -M -r "" --force-distribution --distribution "$DIST"
1717
18+
# if this is a prerelease, set the Section accordingly.
19+
#
20+
# When the package is later added to the package repo, reprepro will use the
21+
# Section to determine which "component" it should go into (see
22+
# https://manpages.debian.org/stretch/reprepro/reprepro.1.en.html#GUESSING)
23+
24+
DEB_VERSION=`dpkg-parsechangelog -SVersion`
25+
case $DEB_VERSION in
26+
*rc*|*a*|*b*|*c*)
27+
sed -ie '/^Section:/c\Section: prerelease' debian/control
28+
;;
29+
esac
30+
31+
1832
dpkg-buildpackage -us -uc
1933
2034
ls -l ..

0 commit comments

Comments
 (0)