Skip to content

Commit

Permalink
* firmware_status.py
Browse files Browse the repository at this point in the history
   Ignore Beta-Releases for Firmwarecheck.
  • Loading branch information
crpb authored and zerwes committed Jun 24, 2024
1 parent 97b343d commit 2856be4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions files/firmware_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
crit_days = 14
# ignore release candidate versions
ignore_rc = True
# ignore beta versions
ignore_beta = True
# fetch new changelogs once X day(s)
fetch_changelog_days = 1
# fetch changelog timeout in seconds
Expand All @@ -44,6 +46,8 @@
crit_days = int(cfg['crit_days'])
if 'ignore_rc' in cfg:
ignore_rc = bool(cfg['ignore_rc'])
if 'ignore_beta' in cfg:
ignore_beta = bool(cfg['ignore_beta'])
if 'fetch_changelog_days' in cfg:
fetch_changelog_days = int(cfg['fetch_changelog_days'])
if 'fetch_changelog_timeout' in cfg:
Expand Down Expand Up @@ -104,6 +108,8 @@

jverlist = json.loads(pr.stdout)
for verd in jverlist:
if verd['version'].endswith('b'):
continue
if ignore_rc and 'r' in verd['version']:
continue
verver = packaging.version.parse(verd['version'])
Expand Down

0 comments on commit 2856be4

Please sign in to comment.