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

Set section for prerelease debs #10391

Merged
merged 1 commit into from
Jul 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/10391.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When building Debian packages for prerelease versions, set the Section accordingly.
14 changes: 14 additions & 0 deletions docker/build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ cd /synapse/build
dch -M -l "+$DIST" "build for $DIST"
dch -M -r "" --force-distribution --distribution "$DIST"

# if this is a prerelease, set the Section accordingly.
#
# When the package is later added to the package repo, reprepro will use the
# Section to determine which "component" it should go into (see
# https://manpages.debian.org/stretch/reprepro/reprepro.1.en.html#GUESSING)

DEB_VERSION=`dpkg-parsechangelog -SVersion`
case $DEB_VERSION in
*rc*|*a*|*b*|*c*)
sed -ie '/^Section:/c\Section: prerelease' debian/control
;;
esac


dpkg-buildpackage -us -uc

ls -l ..
Expand Down