mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-09-27 15:04:50 -04:00
Allow a list of packages to install to be set True
to skip installation.
This can allow a dependency to be marked as installed even if there is nothing to install.
This commit is contained in:
parent
9cd8fae632
commit
a282bd8ce3
@ -136,8 +136,10 @@ class Builder:
|
|||||||
package_name_mapper = PACKAGE_NAME_MAPPERS.get(mapper_name, {})
|
package_name_mapper = PACKAGE_NAME_MAPPERS.get(mapper_name, {})
|
||||||
packages = package_name_mapper.get(builderName)
|
packages = package_name_mapper.get(builderName)
|
||||||
if packages:
|
if packages:
|
||||||
packages_list += packages
|
|
||||||
to_drop.append(builderDef)
|
to_drop.append(builderDef)
|
||||||
|
if packages is not True:
|
||||||
|
# True means "assume the dependency is install but do not try to install anything for it"
|
||||||
|
packages_list += packages
|
||||||
for dep in to_drop:
|
for dep in to_drop:
|
||||||
del self._targets[dep]
|
del self._targets[dep]
|
||||||
return packages_list
|
return packages_list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user