summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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