/pkg/src/tests/cli/ |
H A D | t_pkg_varcet.py | 280 variants = { "variant.icecream": "strawberry" } 281 self.image_create(self.rurl, variants=variants) 351 # facets/variants. 355 # all facets/variants. 359 def __test_foo_variant_upgrade(self, pkg, variants): 371 """.format(variants) 377 """.format(variants) 387 # matching looks for explicit variants). 394 """.format(variants) [all...] |
H A D | t_variants.py | 118 variants={ "variant.mumble": "false" }) 125 newest version allowed by image variants.""" 128 variants={ "variant.mumble": "true" }) 134 variants={ "variant.mumble": "false" }) 147 variants={ "variant.arch": "sparc" }) 175 # Verify that unknown variants are implicitly false and shown in 176 # output of 'pkg variant' before any variants are set.
|
H A D | t_change_variant.py | 152 # verify installed images before changing variants 212 names, variants, and dependancies. So any updates made 270 names, variants, and dependancies. So any updates made 282 if "variant.arch" not in ic.variants: 285 if ic.variants["variant.arch"] != v_arch: 288 ic.variants["variant.arch"], v_arch)) 290 if "variant.opensolaris.zone" not in ic.variants: 293 if ic.variants["variant.opensolaris.zone"] != v_zone: 338 variants = { 342 self.image_create(self.rurl, variants [all...] |
H A D | t_pkg_info.py | 599 # Renamed package for all variants, with correct dependencies. 626 # Renamed package for multiple variants, with dependencies 640 variants = { "variant.cat": "bobcat" } 641 self.image_create(self.rurl, variants=variants) 643 # First, verify that a renamed package (for all variants), and 703 # Next, verify that a renamed package (for all variants),
|
H A D | t_pkgsign.py | 1891 """Test that actions tagged with variants don't break signing. 1904 variants={ "variant.arch": "sparc" }, 2615 self.image_create(self.rurl1, variants={"variant.foo":"bar"}) 2634 self.image_create(self.rurl1, variants={"variant.foo":"bar"}) 2760 self.image_create(self.rurl1, variants={"variant.num":"one"}) 2766 """Test that reverting signed packages with variants works.""" 2800 self.image_create(self.rurl1, variants={"variant.num":"one"})
|
/pkg/src/tests/api/ |
H A D | t_api_list.py | 275 variants={ "variant.mumble": "true" }) 300 variants=False): 316 elif not variants and var and \ 333 if not variants and var and "true" not in var: 364 pubs=misc.EmptyI, variants=False): 379 patterns=patterns, pubs=pubs, variants=variants): 391 variants=False): 395 cats=cats, pubs=pubs, variants=variants) [all...] |
H A D | t_linked_image.py | 390 def _imgs_create(self, limit, variants=None, **ic_opts): 391 if variants == None: 392 variants = { 402 prefix=self.pub1, variants=variants, **ic_opts) 685 variants={"variant.foo": "baz"}, 690 variants={"variant.foo": "baz"}, 739 variants={"variant.foo": "baz"}) 772 variants={"variant.foo": "baz"}) 879 variants [all...] |
H A D | t_api_info.py | 385 # Renamed package for all variants, with correct dependencies. 412 # Renamed package for multiple variants, with dependencies 426 variants = { "variant.cat": "bobcat" } 427 api_obj = self.image_create(self.rurl, variants=variants) 434 # First, verify that a renamed package (for all variants), and 464 # Next, verify that a renamed package (for all variants),
|
H A D | t_api.py | 611 variants={"variant.arch": "i386"}) 666 variants={"variant.arch": "sparc"}, noexecute=False)
|
H A D | t_catalog.py | 235 variants = variant.Variants() 236 variants["variant.arch"] = "i386" 237 excludes = [variants.allow_action] 283 # for all variants). 301 # for 'C' and 'th' locales and without sparc variants). 321 # without sparc variants). 358 # for all variants). 367 # for 'C' and 'th' locales and without sparc variants). 377 # without sparc variants). 387 # variants) [all...] |
H A D | t_api_search.py | 1625 variants = { "variant.arch": "i386" } 1626 api_obj = self.image_create(durl, variants=variants) 1640 variants = { "variant.arch": "sparc" } 1641 api_obj = self.image_create(durl, variants=variants)
|
/pkg/src/modules/ |
H A D | manifest.py | 284 variants. In most cases (cmp_policy=None), we only 285 want to compare the signature-included variants. When 301 # type, key attribute, and unique variants set 387 variants as values; collapse variants where possible.""" 402 Include variants as values; collapse variants where possible.""" 436 and variants from self.actions and size information. Each 447 # List of possible variants and possible values for them. 448 variants [all...] |
/pkg/src/modules/flavor/ |
H A D | base.py | 119 and the variants for the package containing that action. 123 'pkg_vars' is the list of variants against which the package 167 """Create the combinations of variants that this action 173 variants = self.action.get_variant_template() 174 variants.merge_unknown(self.pkg_vars) 175 return variant.VariantCombinations(variants, 200 """Produce a string representation of the variants that apply 240 'pkg_vars' is the list of variants against which the package 333 variants under which each file satisfies it. It takes into 337 packages that deliver the path and the variants unde [all...] |
/pkg/src/util/publish/ |
H A D | pkgmerge.py | 123 or package archive to retrieve packages from. Multiple variants 124 may be specified separated by commas. The same variants must 253 # Determine the unique set of variants across all sources. 254 variants = set() 258 variants.add(v) 263 variants = sorted(variants, reverse=True) 265 # Require that the user specified the same variants for all sources. 267 missing = set(v for v in variants if v not in variant_list[i]) 272 "variants [all...] |
/pkg/src/modules/client/ |
H A D | imageconfig.py | 290 self.variants = variant.Variants() 422 # Must load variants first, since in the case of zones, the 426 self.variants.update(idx.get("variant", {})) 431 self.variants[str(unquote(k))] = v 439 # Ensure architecture and zone variants are defined. 440 if "variant.arch" not in self.variants: 441 self.variants["variant.arch"] = platform.processor() 442 if "variant.opensolaris.zone" not in self.variants: 443 self.variants["variant.opensolaris.zone"] = "global" 572 for f in self.variants 1491 def variants(self): member in class:BlendedConfig [all...] |
H A D | image.py | 1025 props=EmptyDict, refresh_allowed=True, variants=EmptyDict): 1043 'variants' is an optional dictionary of variant names and 1059 # Determine and add the default variants for the image. 1061 self.cfg.variants["variant.opensolaris.zone"] = \ 1064 self.cfg.variants["variant.opensolaris.zone"] = \ 1067 self.cfg.variants["variant.arch"] = \ 1068 variants.get("variant.arch", platform.processor()) 1070 # After setting up the default variants, add any overrides or 1071 # additional variants or facets specified. 1072 self.cfg.variants [all...] |
H A D | api.py | 947 which variants should be returned based on how they were set: 950 Return all variants set in the image and all 951 variants listed in installed packages. 955 any installed package) for all variants set in 956 the image and all variants listed in installed 960 Return only the variants set in the image. 964 any installed package) for only the variants set 968 Return only the variants listed in installed 973 any installed package) for only the variants 976 'implicit' is a boolean indicating whether variants specifie [all...] |
H A D | client_api.py | 265 "change-variants": { 620 variants = False 623 variants = True 687 raise_unmatched=True, repos=origins, variants=variants) 778 "incorporations, or image variants that are known " 864 display_plan_options = ["basic", "fmris", "variants/facets", "services", 2370 # may not apply to this image's variants so won't be
|
/pkg/src/modules/publish/ |
H A D | dependencies.py | 49 import pkg.variant as variants namespace 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 [all...] |
/pkg/src/modules/lint/ |
H A D | pkglint_manifest.py | 280 def variants(self, manifest, engine, pkglint_id="003"): member in class:PkgManifestChecker 284 variant.debug.* variants 344 "of known values for variants in {pkg}").format( 354 variants.pkglint_desc = _("Variants used by packages should be valid.")
|
H A D | engine.py | 108 search_type, patterns=pattern_list, variants=True): 124 search_type, variants=True): 737 patterns=[pkg_name], variants=True,
|
H A D | pkglint_action.py | 132 variants = action.get_variant_template() 133 variants.merge_unknown(pkg_vars) 135 for k, v in six.iteritems(variants): 484 "variants {vars}").format( 606 # variants at this point. 619 """Look for conflicting variants across the given list, 820 """pretty print a group of variants""" 838 # conflicting variants within them. 844 "actions for the following variants across across " 859 "variants acros [all...] |
/pkg/src/modules/client/linkedimage/ |
H A D | zone.py | 184 value = self.__img.cfg.variants[variant]
|
H A D | common.py | 1504 excludes = [ self.__img.cfg.variants.allow_action ] 2582 assert "variants" in api_kwargs 2584 kwargs["variants"] = api_kwargs["variants"] 2591 kwargs["variants"] = None 3148 show_licenses, stage, update_index, variants): 3158 assert not (variants and facets) 3159 if variants: 3161 varcet_dict = variants
|
/pkg/src/ |
H A D | client.py | 633 display_plan_options = ["basic", "fmris", "variants/facets", "services", 648 "variants/facets", "boot-archive", 767 if "variants/facets" in disp and varcets: 772 logger.info(_("Changed variants/facets:")) 1091 "change-variants": sorted(variants_changed), 1996 usage(_("{0}: no variants specified").format(op)) 1998 variants = dict() 2002 usage(_("{0}: variants must to be of the form " 2014 # make sure the user didn't specify duplicate variants 2015 if name in variants [all...] |