summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2022-07-03 02:43:58 +0200
committerBen Hutchings <ben@decadent.org.uk>2023-08-20 22:28:16 +0200
commitd283c8caf077fb4c4712a33639c31d8889d83366 (patch)
tree6f555f98b3e171c8f3085564f8aecca5e4454960 /scripts
parent04063792800307a2110442ef70ca33405a179e02 (diff)
scripts/filter-active.py: Use parse_status to get state
filter-active.py currently takes the first word of the status, as the overall state. This is not always correct. Use parse_status to get it instead.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/filter-active.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/filter-active.py b/scripts/filter-active.py
index dd164ab0..943b3bb1 100755
--- a/scripts/filter-active.py
+++ b/scripts/filter-active.py
@@ -104,7 +104,7 @@ if __name__ == '__main__':
sys.stdout.write("%*s:" % (name_width, i.name))
for release in list_releases:
status = i.status(release) or "unknown"
- status_short = status.split(' ')[0]
+ status_short = parse_status(status)['state']
if options.color and status_short in status_color:
color_on = status_color[status_short]
else:

© 2014-2024 Faster IT GmbH | imprint | privacy policy