[packages/adapter: 291/631] - leave "perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')" untouched

glen glen at pld-linux.org
Mon Sep 12 19:58:51 CEST 2016


commit 87b130e2b7c647620eb5d5499d3d1021fa34bec1
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Feb 27 23:17:27 2006 +0000

    - leave "perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')" untouched
    
    Changed files:
        adapter.awk -> 1.281

 adapter.awk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index bd9bb06..1ff5be0 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1333,8 +1333,8 @@ function get_epoch(pkg, ver,	epoch)
 }
 
 function format_requires(tag, value,	n, p, i, deps, ndeps) {
-	# skip any formatting for commented out items
-	if (/^#/) {
+	# skip any formatting for commented out items or some weird macros
+	if (/^#/ || /%\(/) {
 		return tag "\t" value
 	}
 	n = split(value, p, / *,? */);
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list