Summary:
* Updated automirror.conf
* Removed useless configs
* Added URL for the country code
* Refactored main.py
* Added dictionary with the subdomains of some countries
* Simplified logic
* Removed premature optimizations
* Renamed variables and methods
Test Plan: Compare this version with the previous version. The behaviour is expected to be the same.
Reviewers: tsimonq2, wxl
Differential Revision: https://phab.lubuntu.me/D49
Summary: Adding one line fix to only import socket
Test Plan: Will test in isolated instance of main.py to ensure function
Reviewers: wxl, tsimonq2
Reviewed By: tsimonq2
Differential Revision: https://phab.lubuntu.me/D47
Summary: Updated automirror for urllib.request
Test Plan:
Verify basic function in US, but then also have non-US users test for functionality, especially paying attention to time.
More specifically, this patch should be able to be applied directly to /usr/lib/(i138-linux-gnu|x86_64-linux-gnu)/calamares/modules/automirror/main.py in a live system, then run the installer and see what happens.
Reviewers: tsimonq2, wxl
Reviewed By: tsimonq2
Differential Revision: https://phab.lubuntu.me/D23