summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorNiels Thykier <nthykier@debian.org>2010-04-05 16:01:17 +0000
committerNiels Thykier <nthykier@debian.org>2010-04-05 16:01:17 +0000
commit6d404e42e644ac195d309535f36127f918b46db1 (patch)
tree4442266a950eaa90f1b342553c8bb05a265abf2a /debian/rules
parentcff9e08d666b96b5d590308c41bc2dbe857bf48d (diff)
downloadjava-common-6d404e42e644ac195d309535f36127f918b46db1.tar.gz
Fix the changelog parsing.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 83941d9..0a251d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@
S = $(EMPTY) $(EMPTY)
mk_cslist = $(subst $(S),$(,)$(S),$(foreach v,$(1),$(v)-$(2)))
vafilt = $(subst $(2)=,,$(filter $(2)=%,$(1)))
-jrel = $(shell dpkg-parsechangelog | grep Version | sed "s/Version: 0.//")
+jrel = $(shell dpkg-parsechangelog | grep -E ^Version: | sed "s/Version: 0.//")
DPKG_VARS := $(shell dpkg-architecture)
DEB_HOST_ARCH ?= $(call vafilt,$(DPKG_VARS),DEB_HOST_ARCH)