[PATCH 3 of 6 STABLE] builddeb: use the os codename instead of 'unstable'

Sean Farley sean at farley.io
Mon Apr 18 13:52:10 EDT 2016


# HG changeset patch
# User Sean Farley <sean at farley.io>
# Date 1460835773 25200
#      Sat Apr 16 12:42:53 2016 -0700
# Branch stable
# Node ID fb21760760ee4cd90a19208ac21cba6417c34122
# Parent  da3179bb3ca884e261034064c546d184dcd32a3a
# EXP-Topic ppa
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
@@ -67,10 +67,11 @@ if [ "$BUILD" ]; then
     cp -r $PWD/contrib/debian debian
     chmod -R 0755 debian
 
     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
     if [ $? != 0 ]; then
         echo 'debuild failed!'
diff --git a/contrib/debian/changelog b/contrib/debian/changelog
--- a/contrib/debian/changelog
+++ b/contrib/debian/changelog
@@ -1,5 +1,5 @@
-mercurial (__VERSION__) unstable; urgency=medium
+mercurial (__VERSION__) __CODENAME__; urgency=medium
 
   * Automated build performed by upstream.
 
  -- Mercurial Devel <mercurial-devel at selenic.com>  __DATE__


More information about the Mercurial-devel mailing list