aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs5
1 files changed, 4 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 4ef9e76..fda00d6 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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);