From 93327aad5264b109cbeb9715b2baeaeedae49ea7 Mon Sep 17 00:00:00 2001 From: strahi-linux Date: Fri, 1 Nov 2024 08:55:48 +0100 Subject: [PATCH] Updated index checks --- scripts/check_indexes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/check_indexes.py b/scripts/check_indexes.py index 4a98ee685..ad1fbf1d8 100644 --- a/scripts/check_indexes.py +++ b/scripts/check_indexes.py @@ -3,6 +3,9 @@ import classes.class_gh as gh import classes.class_es as es +# Skip packages with these types +type_skip = ['microchip_dfp', 'microchip_tp'] + if __name__ == "__main__": # First, check for arguments passed def str2bool(v): @@ -43,6 +46,8 @@ def str2bool(v): err = False for indexed_item in es_instance.indexed_items: + if indexed_item['source']['type'] in type_skip: + continue asset_status = requests.get(indexed_item['source']['download_link'], headers=headers) if es_instance.Status.ERROR.value == asset_status.status_code: ## code 404 - error, reindex with correct download link err = True