This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Commit 2afdb5c 1 parent c167e09 commit 2afdb5c Copy full SHA for 2afdb5c
File tree 2 files changed +5
-5
lines changed
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`
11
11
cp -aT /synapse/source /synapse/build
12
12
cd /synapse/build
13
13
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
-
18
14
# if this is a prerelease, set the Section accordingly.
19
15
#
20
16
# 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"
23
19
24
20
DEB_VERSION=` dpkg-parsechangelog -SVersion`
25
21
case $DEB_VERSION in
26
- * rc* |* a* |* b* |* c* )
22
+ * ~ rc* |* ~ a* |* ~ b* |* ~ c* )
27
23
sed -ie ' /^Section:/c\Section: prerelease' debian/control
28
24
;;
29
25
esac
30
26
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 "
31
30
32
31
dpkg-buildpackage -us -uc
33
32
You can’t perform that action at this time.
0 commit comments