Hi, > 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.
this breaks native packages. regards, junichi -- [EMAIL PROTECTED],netfort.gr.jp} Debian Project