From 5070f3f86e1897c43fb47007d9aebd55c68f5c9e Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 25 Jul 2001 14:59:35 +0000 Subject: use rpmlib version comparison function, force destiny. --- rpmtools.xs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rpmtools.xs') diff --git a/rpmtools.xs b/rpmtools.xs index d96af31..89237b2 100644 --- a/rpmtools.xs +++ b/rpmtools.xs @@ -32,6 +32,9 @@ #define HDFLAGS_SOURCERPM 0x04000000 +/* duplicate definition for rpmvercmp (not needed on 4.0.3 but needed on 4.0) */ +int rpmvercmp(const char *a, const char *b); + char *get_name(Header header, int_32 tag) { int_32 type, count; char *name; @@ -309,6 +312,11 @@ void callback_empty(void) {} MODULE = rpmtools PACKAGE = rpmtools +int +rpmvercmp(a,b) + char *a + char *b + char * arch() CODE: -- cgit v1.2.1