aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-12 10:29:32 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-12 10:29:32 +0000
commita5cb5afe5ca405227a18c6df451705a4f07b9267 (patch)
tree8d601481a4fa0e19bb44aeb9e16b01c0a22624bd
parent29492f75d462792795582f4ecbe8431989fbc38c (diff)
downloadperl-URPM-a5cb5afe5ca405227a18c6df451705a4f07b9267.tar
perl-URPM-a5cb5afe5ca405227a18c6df451705a4f07b9267.tar.gz
perl-URPM-a5cb5afe5ca405227a18c6df451705a4f07b9267.tar.bz2
perl-URPM-a5cb5afe5ca405227a18c6df451705a4f07b9267.tar.xz
perl-URPM-a5cb5afe5ca405227a18c6df451705a4f07b9267.zip
Fix passing of rpmRelocation structure with new layout in 4.4.6
-rw-r--r--URPM.xs4
1 files changed, 4 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index d590a6a..7259006 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2853,7 +2853,11 @@ Trans_add(trans, pkg, ...)
}
}
}
+#ifdef RPM_446
+ RETVAL = rpmtsAddInstallElement(trans->ts, pkg->h, (fnpyKey)(1+(pkg->flag & FLAG_ID)), update, *relocations) == 0;
+#else
RETVAL = rpmtsAddInstallElement(trans->ts, pkg->h, (fnpyKey)(1+(pkg->flag & FLAG_ID)), update, relocations) == 0;
+#endif
/* free allocated memory, check rpm is copying it just above, at least in 4.0.4 */
free(relocations);
} else RETVAL = 0;