[packages/rpm-specdump] Silence errors about not existing patches

draenog draenog at pld-linux.org
Thu Dec 13 17:44:41 CET 2012


commit 22c309c5bb01bfcc88f2d891162f35736219e02b
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Thu Dec 13 16:27:50 2012 +0000

    Silence errors about not existing patches
    
    During spec parsing %patch<n> macro complains when the patch does not
    exist. Redefine this macro to silence to avoid error message.

 rpm-specdump.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/rpm-specdump.c b/rpm-specdump.c
index 489b3de..1244cd3 100644
--- a/rpm-specdump.c
+++ b/rpm-specdump.c
@@ -285,6 +285,7 @@ int main(int argc, char *argv[])
 struct Arguments args = { 0,0,0,-1,-1, {0,0,0}, 0 };
 Spec s;
 
+	addDefine(&args, "patch %{nil}");
 	parseArgs(&args, argc, argv);
 
 	if ((args.chroot && chroot(args.chroot)==-1) ||
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list