mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
packages.get_unbuilt_package_levels(): optimize if statement checking whether packages need to be [re]built
This commit is contained in:
parent
0d05d3ca26
commit
d249504151
1 changed files with 2 additions and 1 deletions
|
@ -559,7 +559,8 @@ def get_unbuilt_package_levels(
|
|||
for level_packages in package_levels:
|
||||
level = set[Pkgbuild]()
|
||||
for package in level_packages:
|
||||
if (not check_package_version_built(package, arch) or (force and package in packages) or (rebuild_dependants and package in dependants)):
|
||||
if ((force and package in packages) or (rebuild_dependants and package in dependants) or
|
||||
not check_package_version_built(package, arch)):
|
||||
level.add(package)
|
||||
build_names.update(package.names())
|
||||
if level:
|
||||
|
|
Loading…
Add table
Reference in a new issue