Lines Matching refs:excludes

171                 self.excludes = EmptyI
219 excludes=self_exclude)], [], [])
227 def dictify(mf, excludes):
231 for a in mf.gen_actions(excludes=excludes):
721 def get_directories(self, excludes):
725 if self.excludes == excludes:
726 excludes = EmptyI
727 assert excludes == EmptyI or self.excludes == EmptyI
740 if not excludes or a.include_this(excludes,
746 def gen_facets(self, excludes=EmptyI, patterns=EmptyI):
749 current) excludes that also match at least one of the patterns
753 if self.excludes == excludes:
754 excludes = EmptyI
755 assert excludes == EmptyI or self.excludes == EmptyI
762 if facets is not None and excludes == EmptyI:
763 # No excludes? Then use the pre-determined set of
769 # If different excludes were specified, then look for pkg.facet
773 for a in self.gen_actions_by_type("set", excludes=excludes):
792 # allowed by current excludes.
800 facets = self._get_varcets(excludes=excludes)[1]
804 def gen_variants(self, excludes=EmptyI, patterns=EmptyI):
809 those allowed by the specified (or current) excludes that also
812 if self.excludes == excludes:
813 excludes = EmptyI
814 assert excludes == EmptyI or self.excludes == EmptyI
821 if variants is not None and excludes == EmptyI:
822 # No excludes? Then use the pre-determined set of
829 # If different excludes were specified, then look for
833 for a in self.gen_actions_by_type("set", excludes=excludes):
852 variants = self._get_varcets(excludes=excludes)[0]
857 def gen_mediators(self, excludes=EmptyI):
865 if self.excludes == excludes:
866 excludes = EmptyI
867 assert excludes == EmptyI or self.excludes == EmptyI
881 if not excludes or act.include_this(excludes)):
901 def gen_actions(self, attr_match=None, excludes=EmptyI):
904 if self.excludes == excludes:
905 excludes = EmptyI
906 assert excludes == EmptyI or self.excludes == EmptyI
913 for c in excludes:
923 def gen_actions_by_type(self, atype, attr_match=None, excludes=EmptyI):
927 if self.excludes == excludes:
928 excludes = EmptyI
929 assert excludes == EmptyI or self.excludes == EmptyI
936 for c in excludes:
946 def gen_actions_by_types(self, atypes, attr_match=None, excludes=EmptyI):
952 attr_match=attr_match, excludes=excludes):
955 def gen_key_attribute_value_by_type(self, atype, excludes=EmptyI):
961 for a in self.gen_actions_by_type(atype, excludes=excludes)
964 def duplicates(self, excludes=EmptyI):
974 acts = [a for a in self.gen_actions(excludes=excludes)]
1040 def set_content(self, content=None, excludes=EmptyI, pathname=None,
1048 'excludes' is optional. If provided it must be a length two
1098 self.add_action(action, excludes)
1099 self.excludes = excludes
1100 # Make sure that either no excludes were provided or that both
1101 # variants and facet excludes were or that variant, facet and
1102 # hydrate excludes were.
1103 assert len(self.excludes) != 1
1105 def exclude_content(self, excludes):
1109 self.set_content(content=self.actions, excludes=excludes)
1111 def add_action(self, action, excludes):
1118 The "excludes" parameter is the variants to exclude from the
1136 if excludes and not action.include_this(excludes,
1190 # allowed by current excludes.
1214 def search_dict(file_path, excludes, return_line=False,
1220 path to the manifest file. excludes is the variants which
1284 if not excludes or \
1285 action.include_this(excludes):
1420 def get_size(self, excludes=EmptyI):
1426 'excludes' is a list of a list of variants and facets which
1429 if self.excludes == excludes:
1430 excludes = EmptyI
1431 assert excludes == EmptyI or self.excludes == EmptyI
1438 (excludes == EmptyI or self.excludes == excludes):
1439 # If specified excludes match loaded excludes, then use
1445 for a in self.gen_actions(excludes=excludes):
1449 if excludes == EmptyI:
1456 def _get_varcets(self, excludes=EmptyI):
1462 nexcludes = excludes
1472 x for x in excludes
1477 x for x in excludes
1497 if not excludes or action.include_this(
1544 def __init__(self, fmri, cache_root, contents=None, excludes=EmptyI,
1559 'excludes' is optional. If provided it must be a length two
1574 # Make sure that either no excludes were provided or 2+ excludes
1576 assert len(self.excludes) != 1
1584 # don't specify excludes so on-disk copy has
1590 if excludes:
1591 self.exclude_content(excludes)
1599 self.excludes = EmptyI # to existing manifest
1603 if excludes:
1604 self.excludes = excludes
1607 self.exclude_content(excludes)
1614 self.set_content(excludes=self.excludes, pathname=self.pathname)
1753 if not self.excludes or
1754 a.include_this(self.excludes,
1778 def get_directories(self, excludes):
1783 return Manifest.get_directories(self, excludes)
1785 def gen_actions_by_type(self, atype, attr_match=None, excludes=EmptyI):
1793 attr_match=attr_match, excludes=excludes):
1809 attr_match=attr_match, excludes=excludes):
1813 if excludes == EmptyI:
1814 excludes = self.excludes
1815 assert excludes == self.excludes or self.excludes == EmptyI
1819 # asserting excludes are correct to avoid hiding
1834 if (excludes and
1835 not a.include_this(excludes,
1851 def gen_facets(self, excludes=EmptyI, patterns=EmptyI):
1854 current) excludes that also match at least one of the patterns
1860 return Manifest.gen_facets(self, excludes=excludes,
1863 def gen_variants(self, excludes=EmptyI, patterns=EmptyI):
1868 those allowed by the specified (or current) excludes that also
1873 return Manifest.gen_variants(self, excludes=excludes,
1876 def gen_mediators(self, excludes=EmptyI):
1881 return Manifest.gen_mediators(self, excludes=excludes)
1893 if not self.excludes or \
1894 a.include_this(self.excludes,
1900 def get_size(self, excludes=EmptyI):
1906 'excludes' is a list of a list of variants and facets which
1910 return Manifest.get_size(self, excludes=excludes)
1943 def search_dict(cache_path, excludes, return_line=False):
1944 return Manifest.search_dict(cache_path, excludes,
1947 def gen_actions(self, attr_match=None, excludes=EmptyI):
1951 excludes=excludes)
1953 def __str__(self, excludes=EmptyI):
1958 def duplicates(self, excludes=EmptyI):
1961 return Manifest.duplicates(self, excludes=excludes)
2010 [(a, None) for a in origin.gen_actions(excludes=
2014 def get_directories(excludes):
2018 # This method is overridden so that self.excludes is never set