builddeb: add distroseries to tagged versions stable
authorSean Farley <sean@farley.io>
Fri, 06 May 2016 14:09:11 -0700
branchstable
changeset 29093 c4f0e764b231
parent 29092 0f686ef94726
child 29094 1111e84de635
builddeb: add distroseries to tagged versions This is needed so that launchpad and friends have a unique version number for each distroseries (trusty, wily, xenial, etc). It was discovered when trying to upload 3.8 to launchpad.
contrib/builddeb
--- a/contrib/builddeb	Sun May 01 15:26:41 2016 -0700
+++ b/contrib/builddeb	Fri May 06 14:09:11 2016 -0700
@@ -58,6 +58,10 @@
 fi
 if [ -n "$distance" ] ; then
     debver="$debver+$distance-$CODENAME-$node"
+elif [ "$DEBFLAGS" = "-S" ] ; then
+    # for building a ppa (--source-only) for a release (distance == 0), we need
+    # to version the distroseries so that we can upload to launchpad
+    debver="$debver~${CODENAME}1"
 fi
 
 control=debian/control