[packages/adapter: 517/631] - remove trailing whitespace before trying to split %configure options

glen glen at pld-linux.org
Mon Sep 12 20:17:46 CEST 2016


commit 6c8a2863025dad625360c2c7e02e9470c4523b04
Author: sparky <sparky at pld-linux.org>
Date:   Sun Jan 30 15:47:55 2011 +0000

    - remove trailing whitespace before trying to split %configure options
    
    Changed files:
        adapter.awk -> 1.486

 adapter.awk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 56e9faf..5379924 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1366,7 +1366,9 @@ function use_macros()
 	$0 = fixedsub("%__install", "install", $0);
 
 	# split configure line to multiple lines
-	if (/%configure / && !/\\$/) {
+	if (/%configure +$/) {
+		sub( / +$/, "" );
+	} else if (/%configure / && !/\\$/) {
 		$0 = format_configure($0);
 	}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list