[packages/adapter: 190/631] - separate commaseparated (build)requires lists
glen
glen at pld-linux.org
Mon Sep 12 19:50:23 CEST 2016
commit f12ab15d8c3e133f9f9468c9bee6948505f351b1
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Wed Sep 7 18:20:28 2005 +0000
- separate commaseparated (build)requires lists
Changed files:
adapter.awk -> 1.181
adapter.awk | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 7dea47b..b173058 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -488,6 +488,16 @@ preamble == 1 {
$(NF + 1) = " # FIXME add Requires(scriptlet) -adapter.awk"
}
+ # split (build)requires on commas
+ if (field ~ /requires:/ && $2 ~ /,/) {
+ l = substr($0, index($0, $2));
+ n = split(l, p, / *, */);
+ for (i in p) {
+ printf("%s\t%s\n", $1, p[i]);
+ }
+ next;
+ }
+
if (field ~ /packager:|distribution:|docdir:|prefix:/)
next
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list