[packages/adapter: 97/631] - fix for "%%define python_prefix %%(echo `something`)" (e.g. rpm.spec)

glen glen at pld-linux.org
Mon Sep 12 19:42:35 CEST 2016


commit 3b871fbd2fb7d360c44f8f0cf68b415a80bd9d58
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 30 19:28:30 2001 +0000

    - fix for "%%define python_prefix %%(echo `something`)" (e.g. rpm.spec)
    
    Changed files:
        adapter.awk -> 1.97

 adapter.awk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 9ceb481..a69c6a8 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -450,7 +450,7 @@ preamble == 1 {
 	
 	if ($1 ~ /%define/) {
 		# Do not add %define of _prefix if it already is.
-	       	if ($2 ~ /_prefix/) {
+	       	if ($2 ~ /^_prefix/) {
 			sub("^"prefix, $3, bindir)
 			sub("^"prefix, $3, sbindir)
 			sub("^"prefix, $3, libdir)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list