summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-11-03 16:25:08 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-11-03 16:30:26 +0100
commitecb9971b035c057a11d06feeede644426fec5453 (patch)
tree4fc56a86eef6fc6e74377e661ac1e3a7a43ed992
parent3dbffb183419d910008084ebb425679f3ef6538c (diff)
downloadvendor_replicant-scripts-ecb9971b035c057a11d06feeede644426fec5453.tar.gz
vendor_replicant-scripts-ecb9971b035c057a11d06feeede644426fec5453.tar.bz2
vendor_replicant-scripts-ecb9971b035c057a11d06feeede644426fec5453.zip
Update to (deprecated) channels removal
Since the following commit in the LineageOS wiki[1]: 707b756411b5ea77aa4003c69f8d20d4436c1916 707b75641 wiki: Remove deprecated channels the channels field has been removed as it was replaced by an empty maintainers field[2]. [1]git://github.com/LineageOS/lineage_wiki.git [2]That commit says to "replace [channels: [discontinued]] with 'device.maintainers == empty', where needed" Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-xdata/lineageos_wiki/find_lineageos_devices.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/lineageos_wiki/find_lineageos_devices.py b/data/lineageos_wiki/find_lineageos_devices.py
index 67e09f9..c742f6e 100755
--- a/data/lineageos_wiki/find_lineageos_devices.py
+++ b/data/lineageos_wiki/find_lineageos_devices.py
@@ -28,8 +28,10 @@ last_lineageos_version = 16.0
def still_supported(document):
if not last_lineageos_version in document['versions']:
return False
- if 'discontinued' in document['channels']:
+ if 'channels' in document.keys() and 'discontinued' in document['channels']:
return False
+ if 'maintainers' in document.keys() and len(document['maintainers']) == 0:
+ return False
return True