File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1+ Fix a bug which caused production debian packages to be incorrectly marked as 'prerelease'.
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ DIST=`cut -d ':' -f2 <<< $distro`
1111cp -aT /synapse/source /synapse/build
1212cd /synapse/build
1313
14- # add an entry to the changelog for this distribution
15- dch -M -l " +$DIST " " build for $DIST "
16- dch -M -r " " --force-distribution --distribution " $DIST "
17-
1814# if this is a prerelease, set the Section accordingly.
1915#
2016# 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"
2319
2420DEB_VERSION=` dpkg-parsechangelog -SVersion`
2521case $DEB_VERSION in
26- * rc* |* a* |* b* |* c* )
22+ * ~ rc* |* ~ a* |* ~ b* |* ~ c* )
2723 sed -ie ' /^Section:/c\Section: prerelease' debian/control
2824 ;;
2925esac
3026
27+ # add an entry to the changelog for this distribution
28+ dch -M -l " +$DIST " " build for $DIST "
29+ dch -M -r " " --force-distribution --distribution " $DIST "
3130
3231dpkg-buildpackage -us -uc
3332
You can’t perform that action at this time.
0 commit comments