diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM.xs | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- fix spec2srcheader() for rpm-4.9.x + Version 3.38.1 - 16 November 2010 - fix crashing while removing several packages (#248) @@ -3873,8 +3873,11 @@ Urpm_spec2srcheader(specfile) /* parseSpec() sets RPMTAG_ARCH to %{_target_cpu} whereas we really a header similar to .src.rpm header */ headerMod(header, &td); } - +#ifdef RPM490 + pkg->h = headerLink(header); +#else pkg->h = headerLink(spec->sourceHeader); +#endif sv_pkg = sv_newmortal(); sv_setref_pv(sv_pkg, "URPM::Package", (void*)pkg); XPUSHs(sv_pkg); |