This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/comdev-people.git
The following commit(s) were added to refs/heads/main by this push:
new 138eabd More frequent refresh
138eabd is described below
commit 138eabdd22c42e8646d45df094eeda2feda2c451
Author: Sebb <[email protected]>
AuthorDate: Mon Jul 21 23:47:55 2025 +0100
More frequent refresh
---
tools/pgp.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/pgp.py b/tools/pgp.py
index 8002e1f..fb86ffe 100644
--- a/tools/pgp.py
+++ b/tools/pgp.py
@@ -113,8 +113,8 @@ hasArg1 = len(sys.argv) > 1
noRefresh = hasArg1 and sys.argv[1] == '--no-refresh' # skip refresh
gpgLocal = hasArg1 and sys.argv[1] == '--gpg-local' # don't try to download
keys (for testing)
-# refresh is expensive, only do it once a week
-if DOW == "1" and not noRefresh and not gpgLocal:
+# refresh is expensive, don't do it every day
+if DOW in ['1', '3', '5'] and not noRefresh and not gpgLocal:
print("Refreshing the pgp database...")
log.write("Refreshing the pgp database\n")
pgpfunc('--refresh') # does not seem to have useful status/stderr output