native python version comparison

Filippo Giunchedi filippo at debian.org
Wed Dec 23 19:07:57 UTC 2009


Hi,
FYI: straight out of IRC, otherwise I'll forget

19:29  * buxy is fixing the PTS with the multiples sources in Sources.gz file
19:30  <buxy> I wrote a pure-python dpkg version comparison for this
19:30  <buxy> if anyone is interested in it, it will be in www/bin/common.py
in the PTS code as soon as I'll commit it
19:31  <phil> Wow, seriously, yet another version comparison algorithm?
19:39  <buxy> well, forking dpkg --compare-versions was not interesting and I
don't like python-apt :)
19:39  <buxy> (I simply transposed the perl code from Dpkg::Version in python)
19:48  <CIA-6> qa.debian.org: hertzog * r2324 /trunk/pts/www/bin/
19:48  <godog> buxy: python-debian would be a nice fit, there isn't one IIRC
19:57  <buxy> godog: I agree, feel free to pick it up :)
20:00  <godog> buxy: I'm sending this log to the list, the broader the
audience the better :)
20:02  <buxy> godog: thanks

in fact I just checked, and the Version class makes use of apt_pkg.

If anyone wants to pick it up that would be nice, I'm not sure I can work on
it anytime soon.

cheers,
filippo
-- 
Filippo Giunchedi - http://esaurito.net - 0x6B79D401

When I was young I observed that nine out of every ten things I did were
failures, so I did ten times more work.
-- George Bernard Shaw



More information about the pkg-python-debian-discuss mailing list