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.
--- 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