aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit/files
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-01-13 02:32:14 -0800
committerDan Fandrich <danf@mageia.org>2024-01-15 14:49:00 -0800
commit41308f873e8f11b610e3e02042acfdaec84136a1 (patch)
tree0f3c3131490c4e0855d87a2df9a5dc0c4fb01bb7 /deployment/mgagit/files
parenta75cf1875c2e1f200d77648e7e5084a2fdf5801f (diff)
downloadpuppet-41308f873e8f11b610e3e02042acfdaec84136a1.tar
puppet-41308f873e8f11b610e3e02042acfdaec84136a1.tar.gz
puppet-41308f873e8f11b610e3e02042acfdaec84136a1.tar.bz2
puppet-41308f873e8f11b610e3e02042acfdaec84136a1.tar.xz
puppet-41308f873e8f11b610e3e02042acfdaec84136a1.zip
Convert git-post-receive-hook to Python3
This depends on a newer version of pybugz that's Python 3 compatible (tested with 0.14) and git_multimail.py, which has already been updated. Replace token support with API key support, as per the latest pybugz (and Bugzilla). If an API key is found, it will be used and if not found it will fall back to username/password. No attempt is made to try to create an API key in the same way that a token was minted before. Use a different file name for an API key for coexistence with a token, which is still used by other programs. Add a debug flag for enabling more logging to better see when things go wrong. Create variables for configuration items. Log a message when an i18n e-mail is sent. Do a few little code cleanups.
Diffstat (limited to 'deployment/mgagit/files')
-rw-r--r--deployment/mgagit/files/git_multimail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deployment/mgagit/files/git_multimail.py b/deployment/mgagit/files/git_multimail.py
index 01acf6da..39aa1458 100644
--- a/deployment/mgagit/files/git_multimail.py
+++ b/deployment/mgagit/files/git_multimail.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python2
+#! /usr/bin/env python3
__version__ = '1.7.dev'