[packages/rpm-specdump] - drop support for rpm older than 4.4.9

baggins baggins at pld-linux.org
Mon Oct 19 00:30:06 CEST 2020


commit 431cb63dbdb347f01fba65613b7ed3cd1dea2527
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 19 00:29:42 2020 +0200

    - drop support for rpm older than 4.4.9

 rpm-specdump.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/rpm-specdump.c b/rpm-specdump.c
index deaa22a..1fdcbc3 100644
--- a/rpm-specdump.c
+++ b/rpm-specdump.c
@@ -288,11 +288,7 @@ Spec s;
 	setMacros(args.macros.values, args.macros.cnt);
 
 	rpmts ts = rpmtsCreate();
-#if RPM_VERSION_CODE >= RPM_VERSION(4,4,9)
 	if (parseSpec(ts, args.specfile, NULL, 0, NULL, NULL, 1, 1, 0) != 0) {
-#else
-	if (parseSpec(ts, args.specfile, NULL, NULL, 1, NULL, NULL, 1, 1) != 0) {
-#endif
 		return EXIT_FAILURE;
 	}
   
@@ -301,11 +297,7 @@ Spec s;
 	// here starts the code for builder
 	const char *name = NULL, *version = NULL, *release = NULL, *summary = NULL, *url = NULL;
 
-#if RPM_VERSION_CODE >= RPM_VERSION(4,4,9)
 	initSourceHeader(s, NULL);
-#else
-	initSourceHeader(s);
-#endif
 	Header h = s->sourceHeader;
 
 #if RPM_VERSION_CODE < RPM_VERSION(5,0,0)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list