Hi, On 06/10/2011 12:57 AM, Diego Biurrun wrote:
On Thu, Jun 09, 2011 at 09:25:31PM +0000, noreply@xxxxxxxxxxxxx wrote:------------------------------------------------------------ revno: 5961 committer: Diego Biurrun<diego@xxxxxxxxxx> branch nick: hipl timestamp: Thu 2011-06-09 23:23:26 +0200 message: debian packaging: Integrate Bazaar revision number in package version. modified: packaging/create-package.sh --- packaging/create-package.sh 2011-02-24 09:29:01 +0000 +++ packaging/create-package.sh 2011-06-09 21:23:26 +0000 @@ -86,6 +85,7 @@ build_deb() { + debchange --newversion ${VERSION}-${VCS_REVISION} "entry automatically added by $0" dpkg-buildpackage -us -uc -I.bzr $BUILDPACKAGE_OPTS }
please note the related bug report: https://bugs.launchpad.net/hipl/+bug/790833
This does have one issue though - debian/changelog is changed automatically, but it is a file under revision control. Having such a modified file in the tree can be an annoyance.
Agreed, this is annoying.
Adding debian/changelog to .bzrignore does not help. What we could do as an alternative is to drop that file from revision control altogether and rely on it being generated automatically always.
Works for me. If you're thinking about generating "bzr log" as the changelog, please note that this does not work with the binary maintainer scripts (there you'll just have the doc/ChangeLog).