Package: dpatch Version: 2.0.27 Tags: patch The following command yields the wrong upstream version. It doesn't work with upstream versions containing hyphens, which is allowed according to policy ยง5.6.12.
dpkg-parsechangelog | sed -n '/^Version:/{s/^Version:[[:space:]]\+\([0-9]\+:
\)\?\([^-]\+\).*/\2/;p;q}'
I suggest the following:
dpkg-parsechangelog | sed -n '/^Version:/{s/^Version:[[:space:]]*\([0-9]\+:
\)\?\(.*\)-.*$/\2/p;q}'
which will exclude the last hyphen and everything following it.
--
Magnus Holmgren [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part.

