Lines Matching refs:match
2257 """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
2759 if match == "basename":
2761 r = action.attrs.get(match)
2766 def produce_matching_type(action, match):
2767 """Given an action and a match value (see convert_output for more
2768 details on this parameter), return the kind of match this was. For
2774 return match
2786 fmri name, the match, and a string representation of the action. In
2794 match = None
2799 pfmri, match, action = tup
2810 match_type = produce_matching_type(action, match)
2811 match = produce_matching_token(action, match)
2814 return pfmri, action, pub, match, match_type
2825 search_attrs.extend(["search.match", "search.match_type"])
2833 "search.match", "pkg.shortfmri"]
2881 if a.startswith("action.") or a.startswith("search.match"):
3295 attr, match = arg.split("=", 1)
3299 attr_match.setdefault(attr, []).append(match)
5574 # ignore if we can't find a match
5579 # ignore if we can't find a match