Searched refs:match (Results 1 - 25 of 28) sorted by relevance

12

/pkg/src/modules/
H A Dchoose.py12 """Return the subset of names that match pat. case_sensitive determines
18 # Setting the flag to re.I makes the regexp match using case
22 match = re.compile(fnmatch.translate(pat), flag).match
24 if match(name):
H A D_varcet.c99 PyObject *match = PyObject_CallMethod(re, local
100 "match", "O", attr);
101 if (match != Py_None) {
105 Py_DECREF(match);
119 Py_DECREF(match);
225 * If system variant value doesn't match action
H A Dmediator.py37 if re.match("^[a-zA-Z0-9\-]+$", value):
110 if not error and iname and re.match("^[a-zA-Z0-9\-]+$", iname):
172 strings match. This is needed because an unversioned implementation is
187 # which allows any version to match. Otherwise,
188 # version components must match exactly.
H A Dmogrify.py425 # Now see if there are any backreferences to match groups
432 match.groups()
433 for match in matches
434 if match.groups()
441 raise RuntimeError(_("no match group {group:d} "
480 # skip if types are specified and none match
487 # Check to make sure all matching attrs actually match. The
490 attrdict[key].match(attrval)
499 # Map each pattern to its position in the original match string.
501 for attr, match i
[all...]
H A Dfmri.py155 if not self.valid_pkg_name.match(self.pkg_name):
534 m = re.match(fmristr, self.pkg_name)
538 """True if package names match exactly. Not a pattern-based
638 return g_valid_pkg_name.match(name)
H A Dconfig.py228 not self.__name_re.match(name):
369 assert self.match(name)
379 def match(self, name): member in class:PropertyTemplate
383 return self.__pattern.match(name) is not None
893 not self.__name_re.match(name) or \
1009 assert self.match(name)
1017 def match(self, name): member in class:PropertySectionTemplate
1021 return self.__pattern.match(name) is not None
1151 if p.match(name):
1180 if s.match(nam
[all...]
H A Dfacet.py45 # actual facets find match
62 # in Facets.__local. Facets which are not explicitly set but match an
69 # not explicitly set but match an explicitly set PARENT facet glob
135 """Compare the facet match priority of two Facets objects.
136 Since the match priority of a Facets object is dependent upon
311 if self.__res[k].match(item):
381 """Find the subset of facet key/values pairs which match any
398 if self.__res[facet].match(action_facet):
H A Dcfgfiles.py80 return self.comment_regexp.match(line)
441 return len(line) == 0 or self.comment_regexp.match(line)
446 cols = re.split("(?<=[^\\\\]):", line) #match non-escaped :
451 attributes=re.split("(?<=[^\\\\]);", cols[4]) # match non escaped ;
H A Dquery_parser.py111 # The part before the colon is attempting to match anything that
116 # match the valid term that can follow a colon that's either
1148 # name search is treated as a prefix match. To accomplish
1156 re.I).match
1163 """Ensures that the search is a prefix match. Primarily used
1316 # Check if the current action doesn't match any field
1396 # If offsets is equal to None, match all possible results. A
1397 # match with no results is represented by an empty set.
1403 if TermQuery.has_non_wildcard_character.match(term):
1407 self._data_token_offset.get_id(match)
[all...]
H A Dmisc.py294 if _invalid_host_chars.match(prefix):
298 if _hostname_re.match(prefix):
337 if not host or _invalid_host_chars.match(host):
340 if _hostname_re.match(host):
1708 'default' human-readable output. It must match the fields defined
2540 values to match the current values"""
2746 """Helper function for yielding items that match one of the provided
2759 pat = re.compile(fnmatch.translate(pat)).match
2802 generated by searching, the last two pieces, "match" and "match_type"
2822 for pfmri, action, pub, match, match_typ
[all...]
H A Dmanifest.py61 re.compile(fnmatch.translate(pat), re.IGNORECASE).match
79 for match in matches:
81 if match(attrval):
749 current) excludes that also match at least one of the patterns
810 match at least one of the patterns provided."""
1332 the manifest match the specified signature data. Raises
1439 # If specified excludes match loaded excludes, then use
1854 current) excludes that also match at least one of the patterns
1869 match at least one of the patterns provided."""
/pkg/src/
H A Dpydates28 import mercurial.match as matchmod
36 matchfn = matchmod.match(repo.root, os.getcwd(), patterns=["re:src/modules/.*\.py$"])
50 status = repo.status(match=matchfn)
H A Dclient.py2257 """Determine if installed packages match manifests."""
2732 def __convert_output(a_str, match):
2738 The "match" parameter is a string whose precise interpretation is given
2741 For most action types, match defines which attribute the query matched
2745 associated with that attribute. For those actions, the match parameter
2750 return a.attrs.get(a.key_attr), a.name, match
2751 return match, a.name, a.attrs.get(a.key_attr)
2753 def produce_matching_token(action, match):
2754 """Given an action and a match value (see convert_output for more
2758 return match
[all...]
H A Dsetup.py868 number of empty comment lines so that line numbers match between the
894 match = cddl_re.search(buf)
895 if match:
901 match.start():match.end()]
1364 # unchanged, or from the filesystem if changed) doesn't match
1397 # timestamp on the file to match what we have in our database.
H A Ddepot-config.py662 if not re.match(r"^([A-Za-z][_A-Za-z0-9.-]*,)?[A-Za-z][_A-Za-z0-9-]*$",
/pkg/src/util/log-scripts/
H A Dlog.py48 m = re.match(ex, l)
/pkg/src/modules/flavor/
H A Dpython.py207 install_match = py_lib_re.match(action.attrs["path"])
214 script_match = py_bin_re.match(script_path)
222 # the file is delivered into match.
279 # If the version implied by the directory hierarchy does not match the
/pkg/src/modules/client/
H A Dimageconfig.py447 if not re.match("linked_.*", s):
473 if re.match("authority_.*", s):
608 if not re.match("linked_.*", s):
H A Dpkg_solver.py81 _TRIM_PROPOSED_PUB = 15 # didn't match requested publisher
82 _TRIM_PROPOSED_VER = 16 # didn't match requested version
95 """local exception used to pass failure to match
1138 # elide any proposed versions that don't match variants (arch
1383 # If solution doesn't match installed set of packages, then an
1742 """Returns tuple of set of fmris that are match within
2145 # true if match is required for containing pkg
2598 # because they didn't match user-specified input. It's
2778 # if present, fmri must match ok list
2852 # in only one possible match
[all...]
/pkg/src/tests/api/
H A Dt_config.py186 ("foo", "foo"), # simple strings should match.
202 # Equal because property names and values match.
209 # match.
247 # Equal because property names and values match.
259 # match.
315 # Equal because property names and values match.
321 # match.
462 # Equal because property names and values match.
470 # match.
558 # Equal because property names and values match
[all...]
H A Dt_history.py290 self.assertTrue(re.match("operation-[123]", op_name))
/pkg/src/util/publish/
H A Dpkgmerge.py315 error(_("no publishers from source repositories match "
383 _("The following pattern(s) did not match any "
631 # combination parameters don't match.
793 match = blend_names & blend_attrs
794 for m in list(match):
825 along w/ a list of include patterns that don't match"""
847 Note that patterns starting w/ pkg:/ require an exact match;
849 trailing match rules are used for remaining patterns.
905 # dictionary of pkg names & fmris that match that pattern.
912 continue # name doesn't match
[all...]
/pkg/src/modules/lint/
H A Dpkglint_action.py1356 # dependencies will match those if their package name and
1357 # publisher match.
1489 if not re.match("[a-z].*", username):
1499 re.match("^[a-z]([a-zA-Z0-9._-])*$", username):
/pkg/src/modules/server/
H A Dtransaction.py417 m = re.match("(\d+)_(.*)", tid)
/pkg/src/modules/publish/
H A Ddependencies.py535 The special match-all wildcard ".*" is dealt with separately,
550 # if it appears to be a filename, make it match
574 if regexp.match(path):
767 # Find the links which match the path being checked.
1481 so that the groups match the duplicate actions that the code
1735 # If "*" didn't match any packages, then the image was

Completed in 106 milliseconds

12