diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-06-12 10:29:32 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-06-12 10:29:32 +0000 |
commit | a5cb5afe5ca405227a18c6df451705a4f07b9267 (patch) | |
tree | 8d601481a4fa0e19bb44aeb9e16b01c0a22624bd | |
parent | 29492f75d462792795582f4ecbe8431989fbc38c (diff) | |
download | perl-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.xs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |