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:
Matthieu Gautier
2019-04-02 10:54:03 +02:00
parent 9cd8fae632
commit a282bd8ce3

View File

@ -136,8 +136,10 @@ class Builder:
package_name_mapper = PACKAGE_NAME_MAPPERS.get(mapper_name, {})
packages = package_name_mapper.get(builderName)
if packages:
packages_list += packages
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:
del self._targets[dep]
return packages_list