Commit Graph

12 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
Marc Wrobel
803a8be040 Improve and fix haproxy.py
- Get cycles URL by parsing https://www.haproxy.org/download/:
  - This way the script does not have to be updated each time a new minor version is released.
  - The old algorithm was missing some versions (such as 1.6.x).
- Use a GitHub actions log group to wrap the script logs.
- Display version like the other scripts.
2023-01-13 11:02:32 +01:00
Marc Wrobel
b65b5ad4ee Cleanup code (#37)
* [apple,distrowatch,pypi] Remove unused imports

* [maven] use snake_case for variable names

* [eks,palo-alto-networks] Rename variables shadowing names from outer scopes

* [eks,palo-alto-networks] Remove unused variables

* [apple,haproxy,palo-alto-networks,rhel,ros,unrealircd] Rename variables shadowing built-in names
2022-12-14 09:20:45 +05:30
Nemo
931ff74010 [haproxy] v2.7.0 2022-12-02 16:26:19 +05:30
Nemo
fac9620241 [py] Fix styling 2022-10-17 14:21:36 +05:30
Nemo
fc39472416 [pangp] Add Palo Alto Networks GlobalProtect App 2022-05-30 15:31:31 +05:30
Nemo
920138cf6c fix haproxy date 2022-05-24 19:27:13 +05:30
Nemo
869a866e7e Switch haproxy to all changelogs 2022-05-24 18:09:14 +05:30
Nemo
6a08386585 Fix directories 2022-05-24 15:14:14 +05:30
Nemo
624c6a4d14 Add haproxy as custom 2022-05-24 14:55:54 +05:30