For my Google Summer of Code project, we required a package comparison
algorithm that worked the exact same as Debian. Instead of reusing Buran's
code from Keryx 0.92, I decided to read up on the dpkg vercmp source and
make a port to python. Turned out about 100 lines shorter and considerably
cleaner. From what I've tested, everything seems to compare properly as
well. I'll be building some comparison unit tests to make sure everything
works in a couple of days.

Current release of the algo is here:
http://bitbucket.org/excid3/winlibre/src/00458f7e8856/wpkg/vercmp.py

-- 
Chris Oliver
http://excid3.com
_______________________________________________
Mailing list: https://launchpad.net/~keryx
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~keryx
More help   : https://help.launchpad.net/ListHelp

Reply via email to