From 99c9156d0ab21646fe833c1af974d70bea2f18f4 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 14 Dec 2011 19:37:05 +0000 Subject: (Spec_binrpm) hide struct details git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@160 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'RPM4/src/RPM4.xs') diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index 777e155..88da434 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -2807,6 +2807,7 @@ Spec_binrpm(spec) char * binFormat; char * binRpm; char * path; + Header header; PPCODE: #ifdef RPM4_9_0 croak("binrpm is no more supported with rpm 4.9; FIXME"); @@ -2814,16 +2815,17 @@ Spec_binrpm(spec) for(pkg = spec->packages; pkg != NULL; pkg = pkg->next) { if (pkg->fileList == NULL) continue; +#endif /* headerCopyTags(h, pkg->header, copyTags); */ binFormat = rpmGetPath("%{_rpmfilename}", NULL); - binRpm = headerFormat(pkg->header, binFormat, NULL); + header = pkg->header; + binRpm = headerFormat(header, binFormat, NULL); free(binFormat); path = rpmGetPath("%{_rpmdir}/", binRpm, NULL); XPUSHs(sv_2mortal(newSVpv(path, 0))); free(path); free(binRpm); } -#endif void Spec_check(spec, ts = NULL) -- cgit v1.2.1