This adds a (beginnings of) a version parsing and comparison API to librpmio.
Details in the commit messages, but the (obvious) motivation is to finally have a meaningful API for handling rpm versions in and out of rpm. For maximum coverage, this needs to be in librpmio which allows usage from Lua, macro engine and expression parser. --nopromote support is ripped out to the extent possible without requiring soname bump to avoid dragging that ancient remnant into the new API. Fixes #561 and #897 and paves the way for #1217. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/1221 -- Commit Summary -- * Move rpmVersionCompare() to headerutil.c for better layer match * Move rpmvercmp() to librpmio * Consolidate our Lua-bindings to librpmio now that we can * Axe --nopromote and most of the related infrastructure * Add (beginnings of) a rpm version API (parsing, comparison) * Refactor rpmdsCompare() to use the new version API * Refactor python labelCompare() to use the new version API, add more tests * Fix Lua rpm.vercmp() to compare actual EVRs instead of segments (#897) -- File Changes -- M Makefile.am (1) M doc/librpm/Doxyheader.h (3) M lib/Makefile.am (8) M lib/depends.c (6) M lib/headerutil.c (21) M lib/poptALL.c (5) M lib/rpmds.c (137) M lib/rpmds.h (28) M lib/rpmds_internal.h (3) M lib/rpmlib.h (10) D lib/rpmliblua.c (41) D lib/rpmliblua.h (18) M lib/rpmrc.c (6) M lib/rpmtypes.h (1) M lib/transaction.c (2) M po/POTFILES.in (2) M preinstall.am (4) M python/header-py.c (34) M python/rpmmodule.c (11) M rpmio/Makefile.am (2) M rpmio/rpmlua.c (17) A rpmio/rpmver.c (201) A rpmio/rpmver.h (93) R rpmio/rpmvercmp.c (20) M tests/rpmpython.at (25) -- Patch Links -- https://github.com/rpm-software-management/rpm/pull/1221.patch https://github.com/rpm-software-management/rpm/pull/1221.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/1221
_______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint