improve check for empty subarchives
@@ -406,12 +406,11 @@ class QtArchives:
for packageupdate in package_updates:
if not self.all_extra:
target_packages.remove_module_for_package(packageupdate.name)
- should_filter_archives: bool = (self.subarchives is not None) and self.should_filter_archives(packageupdate.name)
+ should_filter_archives: bool = bool(self.subarchives) and self.should_filter_archives(packageupdate.name)
for archive in packageupdate.downloadable_archives:
archive_name = archive.split("-", maxsplit=1)[0]
- if self.subarchives is not None:
- if should_filter_archives and archive_name not in self.subarchives:
+ if should_filter_archives and bool(self.subarchives) and archive_name not in self.subarchives:
continue
archive_path = posixpath.join(
# online/qtsdkrepository/linux_x64/desktop/qt5_5150/
