packages: adapter.awk - remove trailing whitespace before trying to split %...

sparky sparky at pld-linux.org
Sun Jan 30 16:48:01 CET 2011


Author: sparky                       Date: Sun Jan 30 15:48:01 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- remove trailing whitespace before trying to split %configure options

---- Files affected:
packages:
   adapter.awk (1.485 -> 1.486) 

---- Diffs:

================================================================
Index: packages/adapter.awk
diff -u packages/adapter.awk:1.485 packages/adapter.awk:1.486
--- packages/adapter.awk:1.485	Fri Jan 28 15:11:17 2011
+++ packages/adapter.awk	Sun Jan 30 16:47:55 2011
@@ -1366,7 +1366,9 @@
 	$0 = fixedsub("%__install", "install", $0);
 
 	# split configure line to multiple lines
-	if (/%configure / && !/\\$/) {
+	if (/%configure +$/) {
+		sub( / +$/, "" );
+	} else if (/%configure / && !/\\$/) {
 		$0 = format_configure($0);
 	}
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/adapter.awk?r1=1.485&r2=1.486&f=u



More information about the pld-cvs-commit mailing list