summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2007-02-28 23:58:00 +0000
committernanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2007-02-28 23:58:00 +0000
commite506e47fa2bdb6c8beb46f45612eca212463b0e4 (patch)
treeaeb89418102fe3f39f76a400e6c9cff577269f67
parent74fd49062b6c91610fc034915eaf445f90142e40 (diff)
downloadperl-RPM4-e506e47fa2bdb6c8beb46f45612eca212463b0e4.tar
perl-RPM4-e506e47fa2bdb6c8beb46f45612eca212463b0e4.tar.gz
perl-RPM4-e506e47fa2bdb6c8beb46f45612eca212463b0e4.tar.bz2
perl-RPM4-e506e47fa2bdb6c8beb46f45612eca212463b0e4.tar.xz
perl-RPM4-e506e47fa2bdb6c8beb46f45612eca212463b0e4.zip
- in rpm 4.4.8 (maybe 4.4.7) scaremem should be 0
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@122 971eb68f-4bfb-0310-8326-d2484c010a4c
-rw-r--r--RPM4/src/RPM4.xs12
1 files changed, 9 insertions, 3 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index b122e81..81b4356 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -34,8 +34,8 @@
#undef Stat
/* copy data into rpm or use the header */
-#define O_SCAREMEM 1 /* If returning perl object */
-#define SCAREMEM 1
+#define O_SCAREMEM 0 /* If returning perl object */
+#define SCAREMEM 0
/* Pre processor flags for debugging purpose */
@@ -1271,7 +1271,13 @@ Header_dep(header, type, scaremem = O_SCAREMEM)
rpmTag tag;
PPCODE:
tag = sv2deptag(type);
- ds = rpmdsNew(header, tag, scaremem);
+ ds = rpmdsNew(header, tag,
+#ifdef RPM4_4_7
+ 0
+#else
+ scaremem
+#endif
+ );
ds = rpmdsInit(ds);
if (ds != NULL)
if (rpmdsNext(ds) >= 0) {