aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-09 08:44:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-09 08:44:20 +0000
commit3b303a3dd45e646cfee045c48b1b75efe0565c63 (patch)
treee620a095f8d6a20d2073e4aecb69d0e876695735 /URPM.xs
parent8a05094bf47d44a4165996b483a43ed67ac7e1eb (diff)
downloadperl-URPM-3b303a3dd45e646cfee045c48b1b75efe0565c63.tar
perl-URPM-3b303a3dd45e646cfee045c48b1b75efe0565c63.tar.gz
perl-URPM-3b303a3dd45e646cfee045c48b1b75efe0565c63.tar.bz2
perl-URPM-3b303a3dd45e646cfee045c48b1b75efe0565c63.tar.xz
perl-URPM-3b303a3dd45e646cfee045c48b1b75efe0565c63.zip
- rpm 4.5 support (thanks to peroyvind) (#35323)
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs10
1 files changed, 9 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index a625f04..48b3358 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -30,6 +30,10 @@
#ifdef RPM_446
# define _RPMPS_INTERNAL
#endif
+#ifdef RPM_450
+# define _RPMEVR_INTERNAL
+#include <rpm/rpmevr.h>
+#endif
#include <rpm/rpmlib.h>
#include <rpm/header.h>
#include <rpm/rpmio.h>
@@ -3945,7 +3949,11 @@ Urpm_spec2srcheader(specfile)
SV *sv_pkg;
spec = rpmtsSetSpec(ts, NULL);
if (! spec->sourceHeader)
- initSourceHeader(spec);
+ initSourceHeader(spec
+#ifdef RPM_450
+ , NULL
+#endif
+ );
pkg = (URPM__Package)malloc(sizeof(struct s_Package));
memset(pkg, 0, sizeof(struct s_Package));
headerAddEntry(spec->sourceHeader, RPMTAG_SOURCERPM, RPM_INT32_TYPE, &zero, 1);