Fix arch guessing error when version not fully qualified, fix list-qt android, add --UNSAFE-ignore-hash #909
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #908
In
run_install_qt
, the version in the args is used to determine the architecture. However, if the version is not fully qualified (6.8 in instead of 6.8.3 for example), then the architecture guessing is done with the version not yet resolved. This is because the version guessing also needs the arch. To fix this, I try to guess the arch, then the version, and if the resolved version is different from the argument one, then I run the arch guessing again.Enable usage when Qt mirrors are down
Added common option
--UNSAFE-ignore-hash
that have the same effect as settingINSECURE_NOT_FOR_PRODUCTION_ignore_hash: True
in thesettings.ini
file, but from the CLI. It does not edit the config file and affects only the current session. It prints warnings.Fix #910
(WIP: error fixed, but 6.7.x versions are still missing in list)
The error is in aqt/metadata.py, in fetch_versions / get_versions_extensions. Qt 6.7.X is the only version with the new Qt version folder format that is not yet inside all_os, and the version is not parsed correctly: that's why it flags ValueError: Invalid version string '7': for some reason, 7 is passed to get_semantic_version instead of 6_7_x.
Misc
Added the architectures
linux_gcc_64
andwin64_msvc2022_64
in the help string.