[SCM] a2jmidid/master: d/rules: use the -S option of dpkg-parsechangelog to get the field, instead of sed

mattia at users.alioth.debian.org mattia at users.alioth.debian.org
Wed Dec 28 08:54:53 UTC 2016


The following commit has been merged in the master branch:
commit 08b16f4935d81c13d9eff59e16990ee9b571aa88
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Dec 28 09:30:49 2016 +0100

    d/rules: use the -S option of dpkg-parsechangelog to get the field, instead of sed

diff --git a/debian/rules b/debian/rules
index 636c12e..2a31f44 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,8 @@
 #!/usr/bin/make -f
 
-upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
+upstream_version ?= $(shell dpkg-parsechangelog -S Version | sed -rne 's/^([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
 dfsg_version = $(upstream_version)~dfsg0
-pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+pkg = $(shell dpkg-parsechangelog -S Source)
 
 %:
 	dh $@ --with python2

-- 
a2jmidid packaging



More information about the pkg-multimedia-commits mailing list