[packages/rpm-specdump] - tell rpm 4 that this is a non-build parse and source/patch files may be missing - rel 3

baggins baggins at pld-linux.org
Sat Oct 24 12:41:59 CEST 2020


commit f301ae13973172528e9a67936263671d26a5e2e6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 24 12:41:20 2020 +0200

    - tell rpm 4 that this is a non-build parse and source/patch files may be missing
    - rel 3

 rpm-specdump.c    | 2 +-
 rpm-specdump.spec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rpm-specdump.spec b/rpm-specdump.spec
index 16f0f00..ed3de48 100644
--- a/rpm-specdump.spec
+++ b/rpm-specdump.spec
@@ -2,7 +2,7 @@ Summary:	Print RPM dump of specfile
 Summary(pl.UTF-8):	Narzędzie wypisujące RPM-owy zrzut pliku spec
 Name:		rpm-specdump
 Version:	0.7
-Release:	2
+Release:	3
 License:	GPL
 Group:		Applications/System
 Source0:	%{name}.c
diff --git a/rpm-specdump.c b/rpm-specdump.c
index e0067a2..8a8a02f 100644
--- a/rpm-specdump.c
+++ b/rpm-specdump.c
@@ -297,7 +297,7 @@ Spec s;
 #if RPM_VERSION_CODE < RPM_VERSION(5,0,0)
 #define GET_TAG(t) tag = t; rc = headerGet(h, tag, td, 0);
 #define TAG_VALUE rpmtdGetString(td)
-	s = rpmSpecParse(args.specfile, 0, NULL);
+	s = rpmSpecParse(args.specfile, RPMSPEC_FORCE, NULL);
 	Header h = rpmSpecSourceHeader(s);
 	rpmtd td = rpmtdNew();
 	rpmTagVal tag;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-specdump.git/commitdiff/f301ae13973172528e9a67936263671d26a5e2e6



More information about the pld-cvs-commit mailing list