summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2021-04-06 17:20:36 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2021-04-06 17:20:36 +0200
commitc669086cd0a338ddd08682e94b47f78803eb4b77 (patch)
treeb7ff463fa98b358864efc2975014418d9ea14378
parentaec40ae89f9bde4483b6eb44df2636de243d42a5 (diff)
downloadfreebsd-pkgsign-generic.tar.xz
pkgsign: add a reminder about the walrus operatorgeneric
-rwxr-xr-xpkgsign5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgsign b/pkgsign
index 1caa4bc..60efb38 100755
--- a/pkgsign
+++ b/pkgsign
@@ -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