SPECS: adapter.awk - split Obsoletes/Requires also by space
glen
glen at pld-linux.org
Sat Dec 31 13:11:40 CET 2005
Author: glen Date: Sat Dec 31 12:11:40 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- split Obsoletes/Requires also by space
---- Files affected:
SPECS:
adapter.awk (1.260 -> 1.261)
---- Diffs:
================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.260 SPECS/adapter.awk:1.261
--- SPECS/adapter.awk:1.260 Fri Dec 30 14:09:21 2005
+++ SPECS/adapter.awk Sat Dec 31 13:11:35 2005
@@ -614,9 +614,9 @@
}
# split (build)requires, obsoletes on commas
- if (field ~ /(obsoletes|requires):/ && $0 ~ /,/) {
+ if (field ~ /(obsoletes|requires):/ && NF > 2) {
l = substr($0, index($0, $2));
- n = split(l, p, / *, */);
+ n = split(l, p, / *,? */);
for (i in p) {
printf("%s\t%s\n", $1, p[i]);
}
@@ -696,7 +696,7 @@
sub(/\.pamd$/,"",url[n])
}
- # allow %{name} just in last url component
+ # allow %{name} only in last url component
s = ""
for (i = 1; i <= n; i++) {
url[i] = fixedsub("%{name}", name, url[i])
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.260&r2=1.261&f=u
More information about the pld-cvs-commit
mailing list