[packages/adapter: 368/631] - remove leading whitespace from entries in %files

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


commit 95ae726844c6a07700a48e92a9ff6127ca301978
Author: aredridel <aredridel at pld-linux.org>
Date:   Sat Jun 2 02:08:09 2007 +0000

    - remove leading whitespace from entries in %files
    
    Changed files:
        adapter.awk -> 1.355

 adapter.awk | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 3c7ce1f..a995f12 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1447,6 +1447,9 @@ function use_files_macros(	i, n, t, a)
 		gsub("%attr\\(0", "%attr(")
 	}
 
+	# kill leading whitespace
+	gsub(/^ */, "");
+
 	# kill default attrs
 	gsub(/%dir %attr\(755,root,root\)/, "%dir");
 	gsub(/%attr\(755,root,root\) %dir/, "%dir");
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list