python-apt: promote https sites by default on mirmon option
This commit is contained in:
parent
46d5e40e51
commit
c55c8bf080
1 changed files with 4 additions and 4 deletions
|
|
@ -77,10 +77,10 @@ if args.mirmon:
|
||||||
if args.country and country != args.country:
|
if args.country and country != args.country:
|
||||||
continue
|
continue
|
||||||
for site, urls in sites.items():
|
for site, urls in sites.items():
|
||||||
if urls["http"]:
|
if urls["https"]:
|
||||||
print(f"{country.lower()} {urls['http'][0]}")
|
|
||||||
elif urls["https"]:
|
|
||||||
print(f"{country.lower()} {urls['https'][0]}")
|
print(f"{country.lower()} {urls['https'][0]}")
|
||||||
|
elif urls["http"]:
|
||||||
|
print(f"{country.lower()} {urls['http'][0]}")
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
# Print output
|
# Print output
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue