[packages/adapter: 334/631] - cp -a implies cp -r

glen glen at pld-linux.org
Mon Sep 12 20:02:27 CEST 2016


commit 48409aeefe6db1db775191a5cd94224411820741
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Sep 2 20:08:33 2006 +0000

    - cp -a implies cp -r
    
    Changed files:
        adapter.awk -> 1.322

 adapter.awk | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index a5ca007..f83a8f2 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -472,9 +472,8 @@ function b_makekey(a, b,	s) {
 	if (/mkdir -p/)
 		sub(/mkdir -p/, "install -d")
 
-	# 'install' instead 'cp -p'
-	if (/cp -p\b/)
-		sub(/cp -p/, "install")
+	# cp -a already implies cp -r
+    sub(/^cp -ar/, "cp -a")
 
 	# No '-u root' or '-g root' for 'install'
 	if (/^install/ && /-[ug][ \t]*root/)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list