# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 2016-04-16 19:42:53
# Node ID a8256e3701be0de147ac71831b67e1fceb317c8e
# Parent  4f1dac94b53f5eac2c6c64cd872ccfef67316e99

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

diff --git a/contrib/builddeb b/contrib/builddeb
--- a/contrib/builddeb
+++ b/contrib/builddeb
@@ -69,6 +69,7 @@ if [ "$BUILD" ]; then
 
     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
diff --git a/contrib/debian/changelog b/contrib/debian/changelog
--- a/contrib/debian/changelog
+++ b/contrib/debian/changelog
@@ -1,4 +1,4 @@
-mercurial (__VERSION__) unstable; urgency=medium
+mercurial (__VERSION__) __CODENAME__; urgency=medium
 
   * Automated build performed by upstream.