From: David Bremner <bremner@debian.org>
Date: Tue, 6 Dec 2011 02:27:08 +0000 (-0400)
Subject: build system: allow decreasing debian versions for debian-snapshot
X-Git-Tag: 0.10.2~1
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=8e3879b68968ab985b903868427791e7c1bb516d;p=notmuch-old

build system: allow decreasing debian versions for debian-snapshot

This allows the debian-snapshot to continue working between when
debian/changelog is updated and when the release is tagged.
---

diff --git a/Makefile.local b/Makefile.local
index 8b42136a..d97fa618 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -135,7 +135,7 @@ debian-snapshot: TMPFILE := $(shell mktemp)
 debian-snapshot:
 	make VERSION=$(VERSION) clean
 	cp debian/changelog $(TMPFILE)
-	EDITOR=/bin/true dch -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
+	EDITOR=/bin/true dch -b -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
 	echo '3.0 (native)' > debian/source/format
 	debuild -us -uc
 	mv -f $(TMPFILE) debian/changelog