summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2011-12-14 19:37:05 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2011-12-14 19:37:05 +0000
commit99c9156d0ab21646fe833c1af974d70bea2f18f4 (patch)
tree6123f22f970cdf8b883418f4f897cdccf8137113 /RPM4
parent9c743f0dcd29c863257b74369b5f66eab58fbba9 (diff)
downloadperl-RPM4-99c9156d0ab21646fe833c1af974d70bea2f18f4.tar
perl-RPM4-99c9156d0ab21646fe833c1af974d70bea2f18f4.tar.gz
perl-RPM4-99c9156d0ab21646fe833c1af974d70bea2f18f4.tar.bz2
perl-RPM4-99c9156d0ab21646fe833c1af974d70bea2f18f4.tar.xz
perl-RPM4-99c9156d0ab21646fe833c1af974d70bea2f18f4.zip
(Spec_binrpm) hide struct details
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@160 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/src/RPM4.xs6
1 files changed, 4 insertions, 2 deletions
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)