SOURCES: rpm-specdump.c - rpm 4.4.2 compatible initSourceHeader() ...

glen glen at pld-linux.org
Wed Jan 23 12:00:09 CET 2008


Author: glen                         Date: Wed Jan 23 11:00:09 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- rpm 4.4.2 compatible initSourceHeader() call

---- Files affected:
SOURCES:
   rpm-specdump.c (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/rpm-specdump.c
diff -u SOURCES/rpm-specdump.c:1.7 SOURCES/rpm-specdump.c:1.8
--- SOURCES/rpm-specdump.c:1.7	Wed Jan 23 11:53:43 2008
+++ SOURCES/rpm-specdump.c	Wed Jan 23 12:00:03 2008
@@ -286,9 +286,11 @@
 	Header h = s->sourceHeader;
 	const char *name, *version, *release;
 
-	// seems needed call
-	// TODO: check why %dump doesn't need sources to exist and behave same here.
+#if RPM_VERSION_CODE >= RPM_VERSION(4,4,9)
 	initSourceHeader(s, NULL);
+#else
+	initSourceHeader(s);
+#endif
 
 	if (
 		headerGetEntryMinMemory(h, RPMTAG_NAME, NULL, (void *)&name, NULL) == 0 ||
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm-specdump.c?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list