From bf50fcc4bf3611a378b186b310984b449941bfbc Mon Sep 17 00:00:00 2001 From: nanardon Date: Wed, 14 Dec 2005 17:00:35 +0000 Subject: - use new rpmlib function, Have I already rpm sucks? git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@53 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'RPM4/src') diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index 77198e7..c20bb4f 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -2054,13 +2054,16 @@ void rpmlibdep() PREINIT: rpmds Dep = NULL; +#ifndef RPM4_4_3 rpmds next; const char ** provNames; int * provFlags; const char ** provVersions; int num = 0; int i; +#endif PPCODE: +#ifndef RPM4_4_3 num = rpmGetRpmlibProvides(&provNames, &provFlags, &provVersions); for (i = 0; i < num; i++) { #ifdef HDLISTDEBUG @@ -2079,6 +2082,10 @@ rpmlibdep() #endif } } +#else + if (!rpmdsRpmlib(&Dep, NULL)) + XPUSHs(sv_2mortal(sv_setref_pv(newSVpv("", 0), bless_rpmds, Dep))); +#endif MODULE = RPM4 PACKAGE = RPM4::Header::Dependencies PREFIX = Dep_ -- cgit v1.2.1