[packages/adapter: 107/631] - workaround for both applnk dir in a line

glen glen at pld-linux.org
Mon Sep 12 19:43:26 CEST 2016


commit 2839d71859a75be008e6f629974f17647523f406
Author: ankry <ankry at pld-linux.org>
Date:   Fri Dec 13 22:24:55 2002 +0000

    - workaround for both applnk dir in a line
    
    Changed files:
        adapter.awk -> 1.107

 adapter.awk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index ae250ea..5130588 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -603,8 +603,11 @@ function use_macros()
 	gsub("%{PACKAGE_VERSION}", "%{version}")
 	gsub("%{PACKAGE_NAME}", "%{name}")
 
-	gsub("%{_datadir}/gnome/apps", "%{_applnkdir}")
-	gsub("%{_datadir}/applnk", "%{_applnkdir}")
+	# we can move files between tge dirs below
+	if ($0 !~ "%{_applnkdir}") {
+		gsub("%{_datadir}/gnome/apps", "%{_applnkdir}")
+		gsub("%{_datadir}/applnk", "%{_applnkdir}")
+	}
 
 	gsub("^make$", "%{__make}")
 	gsub("^make ", "%{__make} ")
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list