builddeb: use the os codename instead of 'unstable' stable
authorSean Farley <sean@farley.io>
Sat, 16 Apr 2016 12:42:53 -0700
branchstable
changeset 28989 a8256e3701be
parent 28988 4f1dac94b53f
child 28990 62c245c59433
builddeb: use the os codename instead of 'unstable' This fixes a lintian error (and indeed, launchpad rejects it) by using the distribution's codename (e.g. xenial, trusty, etc).
contrib/builddeb
contrib/debian/changelog
--- a/contrib/builddeb	Sat Apr 16 12:33:21 2016 -0700
+++ b/contrib/builddeb	Sat Apr 16 12:42:53 2016 -0700
@@ -69,6 +69,7 @@
 
     sed -i.tmp "s/__VERSION__/$debver/" $changelog
     sed -i.tmp "s/__DATE__/$(date --rfc-2822)/" $changelog
+    sed -i.tmp "s/__CODENAME__/$CODENAME/" $changelog
     rm $changelog.tmp
 
     debuild -us -uc -b
--- a/contrib/debian/changelog	Sat Apr 16 12:33:21 2016 -0700
+++ b/contrib/debian/changelog	Sat Apr 16 12:42:53 2016 -0700
@@ -1,4 +1,4 @@
-mercurial (__VERSION__) unstable; urgency=medium
+mercurial (__VERSION__) __CODENAME__; urgency=medium
 
   * Automated build performed by upstream.