diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2021-04-06 17:20:36 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2021-04-06 17:20:36 +0200 |
commit | c669086cd0a338ddd08682e94b47f78803eb4b77 (patch) | |
tree | b7ff463fa98b358864efc2975014418d9ea14378 | |
parent | aec40ae89f9bde4483b6eb44df2636de243d42a5 (diff) | |
download | freebsd-pkgsign-generic.tar.xz |
pkgsign: add a reminder about the walrus operatorgeneric
-rwxr-xr-x | pkgsign | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -72,7 +72,7 @@ except IndexError: raise SystemExit("ERROR: key fingerprint missing from command line, aborting") -# # Support for signing large binary blobs +# # Support for signing large binary blobs (python>=3.8 walrus operator) # # - sign_ssh_data() must use add_list() not add_string() for input over 256K, # # create the list here and feed that to sign_ssh_data() instead of _PKGID # _PKGIDS = [] @@ -81,6 +81,9 @@ except IndexError: # # as small as 64MB. Look into that sometime. # _PKGIDS.append(chunk) +## Support for signing large binary blobs (python<3.8) +#_PKGIDS = [_PKGID[i:i+256] for i in range(len(_PKGID))] + if "SSH_AUTH_SOCK" not in environ: import re |