[packages/adapter: 328/631] - kill default %attr-s
glen
glen at pld-linux.org
Mon Sep 12 20:01:56 CEST 2016
commit 462925354d46e517d2f36d6527da8c578576de90
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Wed Jul 26 12:51:51 2006 +0000
- kill default %attr-s
Changed files:
adapter.awk -> 1.316
adapter.awk | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 9cebfc7..e4dab2b 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1367,6 +1367,12 @@ function use_files_macros( i, n, t, a)
gsub("%attr\\(0", "%attr(")
}
+ # kill default attrs
+ gsub(/%dir %attr\(755,root,root\)/, "%dir");
+ if (!/%dir/) {
+ gsub(/%attr\(644,root,root\)/, "");
+ }
+
# sort %verify attrs
if (match($0, /%verify\(not([^)]+)\)/)) {
t = substr($0, RSTART, RLENGTH)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list