Author: glen                         Date: Tue Feb 28 22:42:28 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- kill tabs of sorted preamble tags

---- Files affected:
SPECS:
   adapter.awk (1.282 -> 1.283) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.282 SPECS/adapter.awk:1.283
--- SPECS/adapter.awk:1.282     Tue Feb 28 14:27:45 2006
+++ SPECS/adapter.awk   Tue Feb 28 23:42:23 2006
@@ -644,8 +644,9 @@
                $0 = $1 "%{tmpdir}/%{name}-%{version}-root-%(id -u -n)"
 
        # Use "License" instead of "Copyright" if it is (L)GPL or BSD
-       if (field ~ /copyright:/ && $2 ~ /GPL|BSD/)
+       if (field ~ /copyright:/ && $2 ~ /GPL|BSD/) {
                $1 = "License:"
+       }
 
        if (field ~ /name:/) {
                if ($2 == "%{name}" && name) {
@@ -803,7 +804,9 @@
        if (b_idx > 0) {
                isort(b_key, b_idx);
                for (i = 1; i <= b_idx; i++) {
-                       print "" b_val[b_key[i]];
+                       v = b_val[b_key[i]];
+                       sub(/[ \t]+$/, "", v);
+                       print "" v;
                }
                b_idx = 0
        }
================================================================

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

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

Reply via email to