[packages/rpm-build-tools] install without options to cp -p

glen glen at pld-linux.org
Tue Mar 25 08:11:04 CET 2014


commit 598af9096bf6840cd628a231e4f47cd169ff12a3
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Mar 25 07:10:30 2014 +0000

    install without options to cp -p

 adapter.awk | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 04c7d19..738c25d 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -497,6 +497,10 @@ function b_makekey(a, b,	s) {
 	if (/^install/ && /-m[ \t]*[0-9]+/)
 		gsub(/-m[ \t]*[0-9]+ /, "")
 
+	# install without options -> cp -p
+	if (/^install [^-]/)
+		gsub(/^install/, "cp -p")
+
 	# No lines contain 'chown' or 'chgrp' if owner/group is 'root'
 	if (($1 ~ /chown/ && $2 ~ /root\.root/) || ($1 ~ /chgrp/ && $2 ~ /root/))
 		next
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/9e057b15f8da479c5ce442bdef3cce19838d81ee



More information about the pld-cvs-commit mailing list