forked from MirrorHub/synapse
Fix deb build script to set prerelease flag correctly (#10500)
This commit is contained in:
parent
c167e09fe5
commit
2afdb5c984
2 changed files with 5 additions and 5 deletions
1
changelog.d/10500.misc
Normal file
1
changelog.d/10500.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix a bug which caused production debian packages to be incorrectly marked as 'prerelease'.
|
|
@ -11,10 +11,6 @@ DIST=`cut -d ':' -f2 <<< $distro`
|
||||||
cp -aT /synapse/source /synapse/build
|
cp -aT /synapse/source /synapse/build
|
||||||
cd /synapse/build
|
cd /synapse/build
|
||||||
|
|
||||||
# add an entry to the changelog for this distribution
|
|
||||||
dch -M -l "+$DIST" "build for $DIST"
|
|
||||||
dch -M -r "" --force-distribution --distribution "$DIST"
|
|
||||||
|
|
||||||
# if this is a prerelease, set the Section accordingly.
|
# if this is a prerelease, set the Section accordingly.
|
||||||
#
|
#
|
||||||
# When the package is later added to the package repo, reprepro will use the
|
# When the package is later added to the package repo, reprepro will use the
|
||||||
|
@ -23,11 +19,14 @@ dch -M -r "" --force-distribution --distribution "$DIST"
|
||||||
|
|
||||||
DEB_VERSION=`dpkg-parsechangelog -SVersion`
|
DEB_VERSION=`dpkg-parsechangelog -SVersion`
|
||||||
case $DEB_VERSION in
|
case $DEB_VERSION in
|
||||||
*rc*|*a*|*b*|*c*)
|
*~rc*|*~a*|*~b*|*~c*)
|
||||||
sed -ie '/^Section:/c\Section: prerelease' debian/control
|
sed -ie '/^Section:/c\Section: prerelease' debian/control
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# add an entry to the changelog for this distribution
|
||||||
|
dch -M -l "+$DIST" "build for $DIST"
|
||||||
|
dch -M -r "" --force-distribution --distribution "$DIST"
|
||||||
|
|
||||||
dpkg-buildpackage -us -uc
|
dpkg-buildpackage -us -uc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue