debian/rules: Tighten binNMU version matching, consistent with linux-latest

This commit is contained in:
Ben Hutchings 2016-12-18 02:49:52 +00:00
parent 6b6dd902ca
commit 62be722622
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -170,6 +170,7 @@ linux (4.8.15-1) UNRELEASED; urgency=medium
* debian/control: Fix build-dependency on flex to work with new versions that
have M-A: foreign
* debian/rules: Use dpkg-parsechangelog -S option to select fields
* debian/rules: Tighten binNMU version matching, consistent with linux-latest
-- Uwe Kleine-König <ukleinek@debian.org> Sun, 04 Dec 2016 21:16:06 +0100

2
debian/rules vendored
View File

@ -5,7 +5,7 @@ DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
SOURCE := $(shell dpkg-parsechangelog -SSource)
VERSION := $(shell dpkg-parsechangelog -SVersion)
VERSION_UPSTREAM := $(shell echo "$(VERSION)" | sed -e 's,-[^-]*$$,,')
VERSION_BINNMU := $(shell echo "$(VERSION)" | sed -ne 's,.*+b\(.*\)$$,\1,p')
VERSION_BINNMU := $(shell echo "$(VERSION)" | sed -rne 's,.*\+b([0-9]+)$$,\1,p')
include debian/rules.defs