commit 9ec0ac4910d40a4eb7519d0cd08fbd2c276476a7
Author: Elan Ruusamäe <[email protected]>
Date: Wed Sep 7 18:28:47 2005 +0000
- fix for BR sorting when value BR value contained versioned component
(spaces after $2)
Changed files:
adapter.awk -> 1.183
adapter.awk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 13deb9e..5d7e048 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -99,7 +99,8 @@ function b_makekey(a, b, s) {
# so don't adapterize when the BR/R are mixed with comments
ENVIRON["SORTBR"] == 1 && preamble == 1 && /(Build)?Requires/,
/(Build)?Requires/ { # && !/^%/) {
b_idx++;
- b_ktmp = b_makekey($1, $2);
+ l = substr($0, index($0, $2));
+ b_ktmp = b_makekey($1, l);
b_key[b_idx] = b_ktmp;
b_val[b_ktmp] = $0;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit