Commit Graph

14 Commits

Author SHA1 Message Date
Nemo
11a4f2109f [apple] Fix slight html change 2023-08-11 11:27:58 +05:30
Nemo
2dc21b52c5 [apple] Fix URLs for archived apple pages.
Apple is still linking to these, but they are now
404s. So we switch to the Web Archive links.
2023-07-12 16:37:02 +05:30
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
70f20da616 Refactor apple.py
Split the script into multiple functions to improve its readability.
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
819dba26dd [apple] Fix regex to exclude non-macos releases
This also drops 11.0 and 12.0, which is okay since the dates
we have are technically for 11.0.1 and 12.0.1 anyway.
2023-03-16 17:24:35 +05:30
Robin Laurén
aed62e8f5e [apple] Fix regex for macOS Sierra and beyond (fixes #76)
Apple changed the format or made a mistake for MacOS Ventura 13.2 : it is labeled 'MacOS 13.2.1' on https://support.apple.com/en-us/HT201222.
2023-02-17 21:00:56 +01:00
Marc Wrobel
1e45de3c58 [macOS] Accept all kind of spaces in regexes (fixes #47)
There were two issues with the macOS regexes:

- The regexex accepted only spaces separator. But non-breakable spaces are also used from time to time. Replacing spaces by \s fixed the issue (other product regexes were also updated - never know).
- The first regex, the one that accepted major releases with no minor version, were not useful (covered by the second regex) and partly catched valid versions (such as 13.1), who was then ignored. I removed it.
2022-12-20 15:25:55 +05:30
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
92864aab8b [apple] Update Mac regex to support Ventura
No dots in the version number was tripping the regex
2022-11-08 16:56:12 +05:30
Nemo
fac9620241 [py] Fix styling 2022-10-17 14:21:36 +05:30
Nemo
8e31ed037d Fix release dates for old apple releases
Some dates with 4 character months weren't parsing correctly
2022-06-02 18:58:11 +05:30
Nemo
ea0306b95a Track Apple OS releases (#5) 2022-06-02 09:03:42 +00:00