mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 20:19:21 -05:00
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.
This commit is contained in:
parent
07e0992a76
commit
c82eb02d64
1
changelog.d/10391.misc
Normal file
1
changelog.d/10391.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
When building Debian packages for prerelease versions, set the Section accordingly.
|
@ -15,6 +15,20 @@ cd /synapse/build
|
|||||||
dch -M -l "+$DIST" "build for $DIST"
|
dch -M -l "+$DIST" "build for $DIST"
|
||||||
dch -M -r "" --force-distribution --distribution "$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
|
dpkg-buildpackage -us -uc
|
||||||
|
|
||||||
ls -l ..
|
ls -l ..
|
||||||
|
Loading…
Reference in New Issue
Block a user