From: David Bremner Date: Sun, 17 Jul 2011 14:04:08 +0000 (-0300) Subject: build-system: update version check to support non-native packages. X-Git-Tag: 0.6.1~2 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=0897209f4d0609eb5ccd8cdf759f8d174c013566;hp=466f3b57aa9650cbed47152241813e212c965f94 build-system: update version check to support non-native packages. We could be a bit more flexible about this and support optional Debian versions, but for the moment, we pick a policy and stick to it. --- diff --git a/Makefile.local b/Makefile.local index 2acc9d3a..e9cee27d 100644 --- a/Makefile.local +++ b/Makefile.local @@ -167,8 +167,8 @@ endif .PHONY: verify-version-debian verify-version-debian: verify-version-components - @echo -n "Checking that Debian package version is $(VERSION)..." - @if [ "$(VERSION)" != $$(dpkg-parsechangelog | grep ^Version | awk '{print $$2}') ] ; then \ + @echo -n "Checking that Debian package version is $(VERSION)-1..." + @if [ "$(VERSION)-1" != $$(dpkg-parsechangelog | grep ^Version | awk '{print $$2}') ] ; then \ (echo "No." && \ echo "Please edit version and debian/changelog to have consistent versions." && false) \ fi