aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-19 10:52:51 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-19 10:52:51 +0000
commit694055fd7e72dd9c956cc28780f76c11504575b1 (patch)
treeb06ee30b4315cadaa05ceb4d5ff5ff14f43335bd
parent1a4fe8f6c9c56ea226036a2532a1fa3efc32e6d4 (diff)
downloadperl-URPM-694055fd7e72dd9c956cc28780f76c11504575b1.tar
perl-URPM-694055fd7e72dd9c956cc28780f76c11504575b1.tar.gz
perl-URPM-694055fd7e72dd9c956cc28780f76c11504575b1.tar.bz2
perl-URPM-694055fd7e72dd9c956cc28780f76c11504575b1.tar.xz
perl-URPM-694055fd7e72dd9c956cc28780f76c11504575b1.zip
(Urpm_spec2srcheader) fix parsing a spec file with rpm-4.9
(regression introduced when adding support for rpm-4.9) (TODO: add a regression test in the testsuite)
-rw-r--r--NEWS2
-rw-r--r--URPM.xs2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 20cc27e..009d1d0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix parsing a spec file with rpm-4.9
+ (regression introduced when adding support for rpm-4.9)
- enable to traverse db by fullname
- fix slow matching of individual regexes for skipping dependencies by creating
a large regex to match them all at once (mdv#61389, Shlomi Fish)
diff --git a/URPM.xs b/URPM.xs
index 63d3671..cd9afad 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3843,7 +3843,7 @@ Urpm_spec2srcheader(specfile)
/* Do not verify whether sources exist */
#define SPEC_FORCE 1
#ifdef RPM490
- spec = rpmSpecParse(specfile, SPEC_ANYARCH|SPEC_FORCE, NULL);
+ spec = rpmSpecParse(specfile, RPMSPEC_ANYARCH|RPMSPEC_FORCE, NULL);
if (spec) {
header = rpmSpecSourceHeader(spec);
#else