From: Luca Boccassi Date: Fri, 28 Jul 2017 15:14:20 +0000 (+0100) Subject: Fix upstream version parsing X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=9d37f61d540b2c036c72e97892c7ae99d406d4c6;hp=9d37f61d540b2c036c72e97892c7ae99d406d4c6;p=deb_dpdk.git Fix upstream version parsing The sed regex is greedy, so 17.08-rc2-0vyatta1 returns 17.08-rc2. Match everything until the separator instead. Also use dpkg-parsechangelog --show-field Version to simplify it further. It's available since dpkg-dev 17.0 which is in both Ubuntu 14.04 and Debian 8. Change-Id: Ie3ef44b5573d6ee586e8cf291f307c0539976ead Signed-off-by: Luca Boccassi ---