mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 13:14:37 +03:00
Use original site for update.xml
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -15,16 +15,15 @@ Added
|
|||||||
-----
|
-----
|
||||||
|
|
||||||
* Introduce helper module.
|
* Introduce helper module.
|
||||||
|
|
||||||
* Introduce 'settings.ini' file which has a configuration for
|
* Introduce 'settings.ini' file which has a configuration for
|
||||||
aqt module.
|
aqt module.
|
||||||
|
|
||||||
Changed
|
Changed
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
* Use original site for downloading Update.xml
|
||||||
* Select mirror site before accessing repository database.
|
* Select mirror site before accessing repository database.
|
||||||
This will speed-up installation process.
|
This will speed-up installation process.
|
||||||
|
|
||||||
* Now don't install extra modules when installing 'wasm_32' arch.
|
* Now don't install extra modules when installing 'wasm_32' arch.
|
||||||
You should explicitly specify it with '-m' option.
|
You should explicitly specify it with '-m' option.
|
||||||
|
|
||||||
|
|||||||
@@ -85,11 +85,12 @@ class QtArchives:
|
|||||||
qt_ver_num = self.version.replace(".", "")
|
qt_ver_num = self.version.replace(".", "")
|
||||||
|
|
||||||
# Get packages index
|
# Get packages index
|
||||||
archive_url = "{0}{1}{2}{3}/qt5_{4}{5}".format(self.base, self.os_name,
|
archive_path = "{0}{1}{2}/qt5_{3}{4}".format(self.os_name,
|
||||||
'_x86/' if self.os_name == 'windows' else '_x64/',
|
'_x86/' if self.os_name == 'windows' else '_x64/',
|
||||||
self.target, qt_ver_num,
|
self.target, qt_ver_num,
|
||||||
'_wasm/' if self.arch == 'wasm_32' else '/')
|
'_wasm/' if self.arch == 'wasm_32' else '/')
|
||||||
update_xml_url = "{0}Updates.xml".format(archive_url)
|
update_xml_url = "{0}{1}Updates.xml".format(self.BASE_URL, archive_path)
|
||||||
|
archive_url = "{0}{1}".format(self.base, archive_path)
|
||||||
try:
|
try:
|
||||||
r = requests.get(update_xml_url)
|
r = requests.get(update_xml_url)
|
||||||
except requests.exceptions.ConnectionError as e:
|
except requests.exceptions.ConnectionError as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user