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`.
This commit is contained in:
David Dalcino
2021-11-26 14:04:10 -08:00
parent b8ff63da2d
commit d6a6f79740
5 changed files with 30 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ baseurl: https://download.qt.io
print_stacktrace_on_error: False
always_keep_archives: False
archive_download_location: .
min_module_size: 41
[requests]
connection_timeout: 3.5