aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 671ede1..3e28670 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3905,7 +3905,9 @@ Urpm_spec2srcheader(specfile)
const char *zero = "";
SV *sv_pkg;
spec = rpmtsSetSpec(ts, NULL);
+#if RPM_VERSION_CODE < RPM_VERSION(4,5,0)
if (! spec->sourceHeader)
+#endif
initSourceHeader(spec
#if RPM_VERSION_CODE >= RPM_VERSION(4,5,0)
, NULL