Subject: | Wrong assumptions about upstream version |
Hi,
upstream_version assumes that the upstream version must not contain a
dash ("-"). This is not correct as stated in the Debian Policy [1].
There might also be an epoch before the upstream version.
Regards,
Ansgar
[1] http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-
Version
PS: Dpkg::Control (only in Debian, libdpkg-perl in Squeeze, some other
package in Lenny) also looks pretty similar to what you want.