Author: glen                         Date: Wed Sep  7 18:28:53 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fix for BR sorting when value BR value contained versioned component (spaces 
after $2)

---- Files affected:
SPECS:
   adapter.awk (1.182 -> 1.183) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.182 SPECS/adapter.awk:1.183
--- SPECS/adapter.awk:1.182     Wed Sep  7 20:22:47 2005
+++ SPECS/adapter.awk   Wed Sep  7 20:28:47 2005
@@ -99,7 +99,8 @@
 #   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;
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.182&r2=1.183&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to