aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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