Commit Graph

5 Commits

Author SHA1 Message Date
Marc Wrobel
208ab8e2f8 Apply various minor refactorings
Improve readability and fix a few Python warnings (line too long, exception too broad...) through various minor refactorings.
2023-06-11 12:45:59 +02:00
Marc Wrobel
6ba7828f96 Refactor product releases writing
Create a common function to write resulting JSON files to the releases directory.
It makes this task simpler to read and maintain, while making it modifiable at a central point in the future.
One example of such modification could be the sorting of the versions in a uniform way for all the scripts.
2023-06-11 12:45:59 +02:00
Marc Wrobel
a16d9090d3 Refactor HTTP URL fetching scripts
This creates a common function to fetch HTTP URLs, with enhanced capabilities (retry, use of a known User-Agent).
It makes scripts that need those capabilities simpler, while improving other scripts.

This commit also fixes some scripts that did not log properly (cos.py, eks.py, haproxy.py, palo-alto-networks.py, rhel.py, ros.py, unrealircd.py).
2023-06-11 12:45:59 +02:00
Nemo
b85e8650e0 [php] Fix sorting 2023-04-18 18:36:03 +05:30
Nemo
81b5c4d122 [php] Switches to a custom PHP automation
This uses the PHP releases API. Limitations:

1. New Major versions will needed to be added manually

The src for the API is at https://github.com/php/web-php/blob/master/releases/index.php
The data comes from https://github.com/php/web-php/blob/master/include/releases.inc

This commit keeps the old sort method for a cleaner diff. Next commits
in this PR will fix the sorting to be standardized.

The difference from using tags is:

1. One additional version shows up (4.0.4) which we'd missed previously
   due to being tagged as php-4.0.4REL.
2. Slightly more accurate dates.
2023-04-18 18:36:03 +05:30