[Treepkg-devel] Debian package names/versions on debian/sid systems.
Bernhard Herzog
bh at intevation.de
Fri Jan 7 12:41:47 CET 2011
On 07.01.2011, Sascha L. Teichmann wrote:
> Hi together!
>
> I ran into a debian naming/version problem on debian sid systems
> particular with our KDEPIM for Maemo Fremantle armel [1] builder.
>
> When I log into the corresponding build system and I do e.g.
>
> $ dpkg --compare-versions \
> 'strigi-utils_0.7.2.20100813-1maemo1.1163326_i386.deb' \
> gt \
> 'strigi-utils_0.7.2.20100818-1maemo1.1165226_i386.deb'
>
> dpkg: version 'strigi-utils_0.7.2.20100813-1maemo1.1163326_i386.deb' has
> bad syntax: invalid character in version number
What is the invalid character?
Also, the strings in the example are package names, not version numbers. Does
dpkg --compare-versions 0.7.2.20100813-1maemo1.1163326 \
gt 0.7.2.20100818-1maemo1.1165226
work, i.e. exit with exit code 1 but without error messages? I think it
should because the version strings match the specification in the debian
policy manual
(http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version):
The format is: [epoch:]upstream_version[-debian_revision]
[...]
upstream_version [...] may contain only alphanumerics[33] and the
characters . + - : ~ (full stop, plus, hyphen, colon, tilde) and should
start with a digit
[...]
debian_revision [...] may contain only alphanumerics and the characters
+ . ~ (plus, full stop, tilde)
In your example, both upstream_version and debian_revision only contain
alpha-numerics and full stops and upstream_version starts with a digit.
Regards
Bernhard
More information about the Treepkg-devel
mailing list