eliminating deb/rpm dependency on python-rpm

Michael E Brown Michael_E_Brown at dell.com
Fri Dec 7 01:29:23 CST 2007


On Wed, Dec 05, 2007 at 04:59:32PM -0600, Matt Domsch wrote:
> firmware-tools depends on python-rpm because the rpm.versionCompare()
> function is called.  This function is provided under the LGPL v2.1 
> by the rpm package in lib/rpmvercmp.c.  We _could_ either duplicate
> the C code and add our own python binding to it, or could rewrite it
> from scratch in python.  Either way, it would eliminate pulling in
> python-rpm and its dependent packages (another few) for what is really
> only ~100 lines of C code.

Patches accepted, although I really dont relish the thought of
maintaining code to cope with tons of different version comparison
schemes when RPM does just fine. *sigh*
--
Michael


More information about the firmware-tools-devel mailing list