[packages/adapter: 270/631] - skip making changes to commented out %files

glen glen at pld-linux.org
Mon Sep 12 19:57:05 CEST 2016


commit da6457aaa887f9e13f9758ece347045e69021799
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Dec 30 13:09:21 2005 +0000

    - skip making changes to commented out %files
    
    Changed files:
        adapter.awk -> 1.260

 adapter.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index e593cd3..534fdee 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1080,6 +1080,11 @@ function use_files_macros(	i, n, t, a)
 {
 	use_macros()
 
+	# skip comments
+	if (/^#/) {
+		return;
+	}
+
 	gsub("^%{_sbindir}", "%attr(755,root,root) %{_sbindir}")
 	gsub("^%{_bindir}", "%attr(755,root,root) %{_bindir}")
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list