Bug#573592: absent debian revision is not considered equivalent to 0
package apt
tags 573592 patch
thanks
Hi Jelmer Vernooij,
2010/3/12 Jelmer Vernooij <jelmer@debian.org>:
> According to Policy 5.6.12 the absence of a debian revision should be
> considered equivalent to the presence of a debian revision of 0 (this
> was clarified somewhere in 2008).
Thanks for your report!
A fix for this issue plus a revamp of the testcase for version comparison
can be found in my branch [0]. If someone has more ideas for "strange"
version numbers we could compare, i am open for suggestions.
Bonusfact:
This part of the code was untouched since 2004
(and only a minor modification: add of 0-Epoch treatment).
Hopefully libdpkg is faster in becoming a stable library than it is libapt,
so this wild mixture of codecopy and rewrite we currently call
"version comparison in apt" can be dropped in the future. :)
Best regards / Mit freundlichen Grüßen,
David Kalnischkies
[0] http://bazaar.launchpad.net/~donkult/apt/sid/revision/1957
Reply to: