A few more tweaks.
authorWayne Davison <wayne@opencoder.net>
Sat, 10 Sep 2022 23:19:21 +0000 (16:19 -0700)
committerWayne Davison <wayne@opencoder.net>
Sat, 10 Sep 2022 23:35:20 +0000 (16:35 -0700)
NEWS.md
support/json-rsync-version

diff --git a/NEWS.md b/NEWS.md
index 81d66b63c94a5c23e004cb7295bf3e7421d3ccd9..fe962ad0810317def4f773a57cca84f65c7ac026 100644 (file)
--- a/NEWS.md
+++ b/NEWS.md
@@ -13,7 +13,7 @@
   digests are at the highest priority in the new negotiation list.
 
 - Added support for SHA1, SHA256, and SHA512 digests in file checksums.  While
-  This tends to be overkill, if someone needs it, it is available.  These
+  this tends to be overkill, it is available if someone really needs it.  These
   overly-long checksums are at the lowest priority in the normal checksum
   negotation list.
 
   output in a (still human-readable) JSON format (client side only).
 
 - The script `support/json-rsync-version` is available to get the JSON style
-  version output from any rsync.  The script accepts the version output on
-  stdin **or** the name of an rsync to run as an arg.  If the text isn't
-  already in JSON format, the text is translated into equivalent JSON.
+  version output from any rsync.  The script accepts either text on stdin
+  **or** an arg that specifies an rsync executable to run with a doubled
+  `--version` option.  If the text we get isn't already in JSON format, it is
+  converted into equivalent JSON as rsync 3.2.7 would output it (though some
+  info may be missing from older versions).
 
 ### PACKAGING RELATED:
 
index 81a8c8de297e3e71ea6c5e90bfb60525f83c2cab..6f083baea04a037ff01e391662603c6be2a5092d 100755 (executable)
@@ -49,6 +49,9 @@ def main():
             sect_name = line.strip(' :').replace(' ', '_').lower()
             info[sect_name] = [ ]
             saw_comma = False
+    for chk in 'capabilities optimizations'.split():
+        if chk not in info:
+            info[chk] = { }
     for chk in 'checksum_list compress_list daemon_auth_list'.split():
         if chk not in info:
             info[chk] = [ ]