[packages/adapter: 277/631] - skip any formatting for commented out items in format_requires
glen
glen at pld-linux.org
Mon Sep 12 19:57:40 CEST 2016
commit 3f81d059462ddfbd0062c850e79577a9544a1596
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Wed Jan 4 14:06:10 2006 +0000
- skip any formatting for commented out items in format_requires
Changed files:
adapter.awk -> 1.267
adapter.awk | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 802b216..36c7a7a 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1297,6 +1297,10 @@ function kill_preamble_macros()
}
function format_requires(tag, value, n, p, i, deps, ndeps) {
+ # skip any formatting for commented out items
+ if (/^#/) {
+ return tag "\t" value
+ }
n = split(value, p, / *,? */);
for (i = 1; i <= n; i++) {
if (p[i+1] ~ /[<=>]/) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list