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 5bec9e2..8595cbd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix urpmi segfaulting on 'urpmi foobar.spec' when some files are missing
+
Version 3.38.2 - 09 November 2011
- fix spec2srcheader() for rpm-4.9.x
diff --git a/URPM.xs b/URPM.xs
index fda00d6..568affd 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3846,8 +3846,8 @@ Urpm_spec2srcheader(specfile)
#define SPEC_FORCE 1
#ifdef RPM490
spec = rpmSpecParse(specfile, SPEC_ANYARCH|SPEC_FORCE, NULL);
- header = rpmSpecSourceHeader(spec);
if (spec) {
+ header = rpmSpecSourceHeader(spec);
#else
if (!parseSpec(ts, specfile, "/", NULL, 0, NULL, NULL, SPEC_ANYARCH, SPEC_FORCE)) {
#endif