aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-25 14:59:35 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-25 14:59:35 +0000
commit5070f3f86e1897c43fb47007d9aebd55c68f5c9e (patch)
tree702f309c30991bd8fa91f17edae627f7258cd6b0 /rpmtools.xs
parentc019f7e04986a404b6a556624d06585f5b3fe744 (diff)
downloadrpmtools-5070f3f86e1897c43fb47007d9aebd55c68f5c9e.tar
rpmtools-5070f3f86e1897c43fb47007d9aebd55c68f5c9e.tar.gz
rpmtools-5070f3f86e1897c43fb47007d9aebd55c68f5c9e.tar.bz2
rpmtools-5070f3f86e1897c43fb47007d9aebd55c68f5c9e.tar.xz
rpmtools-5070f3f86e1897c43fb47007d9aebd55c68f5c9e.zip
use rpmlib version comparison function, force destiny.3.1.2
Diffstat (limited to 'rpmtools.xs')
-rw-r--r--rpmtools.xs8
1 files changed, 8 insertions, 0 deletions
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: