aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs16
1 files changed, 15 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 9f6866a..c476a34 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -190,6 +190,7 @@ get_nvra(Header h) {
return NVRA;
}
+/* TODO: behaviour of rpmEVRcmp() & rpmEVRcompare() differs, is this correct? */
static int
do_rpmEVRcmp(const char *a, const char *b) {
int compare;
@@ -3348,7 +3349,20 @@ int
rpmvercmp(one, two)
char *one
char *two
-
+
+int
+rpmEVRcmp(one, two)
+ char *one
+ char *two
+ PREINIT:
+ int compare;
+ CODE:
+ compare = do_rpmEVRcmp(one, two);
+ RETVAL = compare;
+ OUTPUT:
+ RETVAL
+
+
int
Urpm_ranges_overlap(a, b)
char *a