Lines Matching defs:variants
49 import pkg.variant as variants
77 # 'variant-combination' is the combination of variants under which the link is
112 "variants:\n{combo}").format(
141 "The action's variants are: {act}\nThe package's "
142 "variants are: {pkg}").format(
163 variant set on them which is not in the package's set of variants."""
184 "the\npaths seen below which have variants set on "
186 "variants must be set on the package or removed "
193 "specified dependencies\nwhich have variants set "
239 self.diff = variants.VCTDifference(tuple(diff.type_diffs),
320 'pkg_vars' are the variants that this package was published against."""
348 pvc = variants.VariantCombinations(pvars, satisfied=True)
390 'pkg_vars' are the variants that this package was published against.
705 """This method maps a path to one or more real paths and the variants
712 the package delivers and the variants under which each file is present.
719 'path_vars' is the set of variants under which 'path' exists.
733 # Copy the variants so that marking the variants as satisified
741 # If the file is delivered under a set of variants which
745 # The intersection of the variants which apply to the
746 # current path and the variants for the delivered file
747 # is the combination of variants where the original
754 # If the path was resolved under all relevant variants, then
777 # If the variants needed to reach the current path and the
778 # variants for the link don't intersect, then the link is
783 # If the link only matters under variants that are satisfied,
838 # variants as the path. This works because the
839 # set of relevant variants is restricted as
840 # links are applied so the variants used for the
841 # path are the intersection of the variants for
843 # the variants under which the file is
856 'files_dict' is a dictionary mapping paths to a list of fmri, variants
866 'dep_vars' are the variants for which the dependency has not yet been
869 'orig_dep_vars' is the original set of variants under which the
961 'orig_dep_vars' is the original set of variants under which the
964 'pkg_vars' is the variants against which the package was published."""
966 # If the file dependency has already satisfied all its variants, then
983 # We only need to resolve for the variants not already satisfied
1008 combination of variants, that information must be paired with the
1348 # If comp_vars is empty, then no variants have been
1431 # dependency under some combinations of variants, then
1433 # combinations of variants.
1447 # those combinations of variants under which the require
1469 the variants associated with that dependency.
1471 'pkg_vars' are the variants that the package for which dependencies are
1493 """Add the variants 'd_vars' to the dependency 'd', after
1494 removing the variants matching those defined in 'pkg_vars'."""
1548 # together depedencies on the same fmri with different variants.
1554 res_vars = variants.VariantCombinations(pkg_vars, False)
1570 """Take a dependency which may be tagged with variants and move those
1581 return dep, variants.VariantCombinations(dep_vars, satisfied=satisfied)
1593 """Add mappings from path names to FMRIs and variants.
1596 the package delivers and the variants under which each file is
1600 the package delivers and the variants under which each link is
1624 vc = variants.VariantCombinations(vc,
1633 vc = variants.VariantCombinations(vc,
1665 # variants the package was published against. The fifth is the list of
1678 # This records all the variants used in any package known. It is used
1681 distro_vars = variants.VariantCombinationTemplate()
1692 return variants.VariantCombinations(act_vct, satisfied=True)
1743 # Move all package variants into the same universe.
1786 # into the distro_vars universe of variants, so we need to move
1787 # pkg_vars (and by extension the variants on depend actions)
1804 variants.VCTDifference(set(), set()))
1831 variants.VCTDifference(set(), set()))