From c55c8bf08027c1088feb79a313f572cf89d33989 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Tue, 7 Jan 2025 22:32:41 -0600 Subject: [PATCH] python-apt: promote https sites by default on mirmon option --- helpers/DATA/python-apt/parse-mirror-masterlist.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/DATA/python-apt/parse-mirror-masterlist.py b/helpers/DATA/python-apt/parse-mirror-masterlist.py index 2951eb7..6867e53 100644 --- a/helpers/DATA/python-apt/parse-mirror-masterlist.py +++ b/helpers/DATA/python-apt/parse-mirror-masterlist.py @@ -77,10 +77,10 @@ if args.mirmon: if args.country and country != args.country: continue for site, urls in sites.items(): - if urls["http"]: - print(f"{country.lower()} {urls['http'][0]}") - elif urls["https"]: + if urls["https"]: print(f"{country.lower()} {urls['https'][0]}") + elif urls["http"]: + print(f"{country.lower()} {urls['http'][0]}") exit(0) # Print output @@ -89,7 +89,7 @@ for country, sites in sorted(mirrors.items()): continue valid_sites = { - site: urls for site, urls in sites.items() + site: urls for site, urls in sites.items() if urls["https"] or urls["http"] } if not valid_sites: