diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-07-17 20:03:07 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-07-17 20:03:07 +0000 |
commit | 71c0723efa51d9e0e779f70e3ee7ce90d1dc2f4a (patch) | |
tree | e54c5f43fa496c975b3777fe804dc180507a9084 /URPM.xs | |
parent | 86419fe6b51fed42da704092c42a36399b0391a6 (diff) | |
download | perl-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.xs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |