10 Commits

Author SHA1 Message Date
Hiroshi Miura
2c10608319 docs: update authors and fix syntax
- add new contributors: thanks Alberto, steveice10 and lebarsfa
- Fix quote words with double backquotes

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2023-11-06 11:13:25 +09:00
lebarsfa
612dc7ba91 Add ignore_hash option in settings.ini (#684)
* Settings: add an option to skip checksum verification on Updates.xml

This allows aqt to work even when the server download.qt.io is
unreachable.

Signed-off-by: Alberto Mardegan <mardy@users.sourceforge.net>

* Update settings.ini

* Correct option to skip checksum verification

* Rename ignore_hash option to INSECURE_NOT_FOR_PRODUCTION_ignore_hash

* Update doc about INSECURE_NOT_FOR_PRODUCTION_ignore_hash

* Add hash_algorithm option

* Unofficial mirrors might not provide any hash for Updates.xml

* docs: update configuration.rst

express default value of hash_algorithm

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* fix: hashlib constructor with usedforsecurity=False

- Python 3.9 and later introduce a keyword argument ``usedforsecurity``
- Set to False because we use hash to check file integrity not for password hash.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* Attempt to fix parameter type inconsistency in downloadBinaryFile

---------

Signed-off-by: Alberto Mardegan <mardy@users.sourceforge.net>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Co-authored-by: Alberto Mardegan <mardy@users.sourceforge.net>
Co-authored-by: Hiroshi Miura <miurahr@linux.com>
2023-11-06 07:29:03 +09:00
Mozi
19b54d82c4 Docs: might be unhappy with the default blacklist settings 2023-06-18 16:36:29 +00:00
David Dalcino
b92ee9935d Add setting for trusted_mirrors 2022-03-06 17:36:32 -08:00
David Dalcino
d6a6f79740 Prevent listing modules <= 40 bytes uncompressed
This prevents `list-*` from printing any module whose uncompressed size
is 40 bytes or less.

I have found a couple of modules that are exactly 40 bytes, and they
include no files, only empty directories. If any user tries to install
these modules, they will think that aqt failed to install the module
without printing any error message. I prefer to avoid this issue
by preventing `aqt list-*` from printing them.

`aqt install-*` is unaffected by this change, and it can still install
modules that contain no files. It is likely that we will need to print
a warning when this occurs.

If any user disagrees with the threshold value of 40 bytes, they are
free to adjust that value to their liking in `settings.ini`.
2021-11-26 14:04:10 -08:00
David Dalcino
7d5ee32ac3 Add settings entries for --keep & --archive-dest
This allows a user to turn on `--keep` every time they run the program,
and to set the default archive destination when `--keep` is turned on.
Using `--archive-dest` overrides the archive destination in setting.ini.
2021-11-24 14:01:26 -08:00
Chocobo1
9f8af1071d Add Qt mirror list to doc 2021-10-28 12:02:13 +08:00
David Dalcino
4a12ad7a68 Update configuration.rst with new options
This updates the docs for the `settings.ini` file.

The purpose of this change is to deprecate `max_retries` and document
`max_retries_on_connection_error` and `max_retries_on_checksum_error`.
However, it appears that `docs/configuration.rst` has been out of date
for a while, since several entries are missing. This change adds all
the missing entries, along with the new entries.
2021-10-04 08:53:39 -07:00
Hiroshi Miura
827d8d53e1 Introduce -c / --config command line option
option to specify settings.ini

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-05-23 14:35:05 +09:00
Hiroshi Miura
089cc3427c settings.ini: use multiline configuration for URL list
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-05-23 14:05:17 +09:00