aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-07-17 20:03:07 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-07-17 20:03:07 +0000
commit71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a (patch)
treee54c5f43fa496c975b3777fe804dc180507a9084 /URPM.xs
parent86419fe6b51fed42da704092c42a36399b0391a6 (diff)
downloadperl-URPM-71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a.tar
perl-URPM-71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a.tar.gz
perl-URPM-71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a.tar.bz2
perl-URPM-71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a.tar.xz
perl-URPM-71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a.zip
ensure that initSourceHeader gets run for rpm5.org, otherwise querying of spec files won't work
Diffstat (limited to 'URPM.xs')
-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