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

Sean Farley sean at farley.io
Wed Apr 20 14:01:56 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 304ccbe48d748b0879590dbb553e92d1acb307a7
# Parent  1d7bde00335de695e91f93b3f94583eb41c404bd
# 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