[packages/adapter: 201/631] - allow %attr with only zeroes

glen glen at pld-linux.org
Mon Sep 12 19:51:18 CEST 2016


commit 7dfb4deaa10ecd9de313e790b6ceab0a921d351f
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Oct 9 13:27:54 2005 +0000

    - allow %attr with only zeroes
    
    Changed files:
        adapter.awk -> 1.192

 adapter.awk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 36de903..7ae8632 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -960,7 +960,9 @@ function use_files_macros(	i, n, t, a)
 
 
 	# kill leading zeros
-	gsub("%attr\\(0", "%attr(")
+	if (/%attr\(0[1-9]/) {
+		gsub("%attr\\(0", "%attr(")
+	}
 
 	# sort %verify attrs
 	if (match($0, /%verify\(not([^)]+)\)/)) {
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list