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

login
register
mail settings
Submitter Sean Farley
Date April 20, 2016, 6:01 p.m.
Message ID <304ccbe48d748b087959.1461175316@laptop.office.atlassian.com>
Download mbox | patch
Permalink /patch/14739/
State Accepted
Headers show

Comments

Sean Farley - April 20, 2016, 6:01 p.m.
# HG changeset patch
# User Sean Farley <sean@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).

Patch

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@selenic.com>  __DATE__