Lines Matching defs:fmris
98 def __init__(self, reason_id, reason, fmris=EmptyI):
100 self.__fmris = fmris
105 def fmris(self):
128 known pkgs, installed fmris should be a dict of fmris indexed
170 self.__trim_dict = defaultdict(set) # fmris trimmed from
180 self.__removal_fmris = set() # installed fmris we're
190 self.__id2fmri = {} # map ids -> fmris
200 self.__variant_dict = {} # fmris -> variant cache
219 # set of fmris installed in root image; used for origin
225 # (e.g. all fmris that satisfy group dependency trimmed); this
455 # trim fmris that user explicitly disallowed
516 """Update the provided possible set of fmris with the transitive
583 # fmris.
710 for reason_id, reason_t, fmris in \
854 def add_triggered_op(self, trigger_op, exec_op, fmris):
855 """Add the set of FMRIs in 'fmris' to the internal dict of
865 assert isinstance(fmris, set)
867 self.__triggered_ops[trigger_op][exec_op] |= fmris
1001 # generate set of possible fmris
1004 # installed fmris in case publisher change has occurred and
1011 # Add the proposed fmris, populate self.__expl_install_dict and
1038 # If requested, trim any proposed fmris older than those of
1075 # trim fmris we excluded via proposed_fmris
1160 # Update the set of possible fmris with the transitive closure
1179 # remove all trimmed fmris from consideration
1236 # fix the fmris that were specified on the cmd line
1253 # Now we have the oldest possible original fmris
1295 # generate set of possible fmris
1310 # trim fmris we cannot install because they're older
1340 # remove all trimmed fmris from consideration
1628 # generate dictionary of possible pkgs fmris by pkg stem
1638 """ give a set of possible fmris, assign ids"""
1657 """Translate variable number (id) to fmris"""
1670 """ return the list of fmris in catalog for this pkg name"""
1684 """Returns tuple of set of fmris that are matched within
1686 fmris."""
1723 """Returns tuple of set of fmris that are older than
1724 specified version and set of remaining fmris."""
1742 """Returns tuple of set of fmris that are match within
1744 fmris."""
1863 # Filter out fmris with 'pkg.depend.explicit-install' set to
1881 """return set of all fmris the set of specified fmris could
1937 fmri_adds=e.fmris)
1940 def __elide_possible_renames(self, fmris, excludes=EmptyI):
1942 renamed fmris that have no other fmris depending on them
1948 for pfmri in fmris
1954 return set(fmris)
1958 for pfmri in fmris
1961 # figure out which renamed fmris have dependencies; compute
1964 needs_processing = set(fmris) - renamed_fmris
1994 return set(fmris) - renamed_fmris
1998 """return set of installed fmris that have require dependencies
2031 fmris = work.pop()
2032 processed.add(frozenset(fmris))
2033 d = self.__combine_incorps(fmris, excludes)
2036 (reason, (fmris[0].pkg_name,)))
2042 """Given a list of fmris, one of which must be present, produce
2044 of two sets (matching fmris, nonmatching)"""
2069 dictionary containing (matching, non matching fmris),
2070 indexed by pkg name. Note that some fmris may be
2098 def __parse_group_dependency(self, dotrim, obsolete_ok, fmris):
2099 """Returns (matching, nonmatching) fmris for given list of group
2104 for f in fmris:
2126 fmris = []
2141 fmris.append(fmri)
2143 fmri = fmris[0]
2147 # if this dependency has conditional fmris
2202 for f in fmris:
2212 # Parent dependency fmris must exist outside of the
2226 # Determine potential fmris for matching.
2229 for fmri in fmris
2235 # Determine matching fmris.
2258 # version, remove the obsolete fmris from
2345 if len(fmris) == 1:
2352 for f in fmris:
2358 if len(fmris) == 1:
2369 for f in fmris
2441 """ Returns a list of strings describing why fmris cannot
2603 for reason_id, reason_t, fmris in \
2613 for reason_id, reason_t, fmris in sorted(
2655 for f in sorted(fmris)
2688 fmri_adds=e.fmris)
2721 of the fmris in fmri_list may be installed. This prevents
2820 'pkg_cons' is a dict of installed package fmris and the
2901 during this install operation, and the lists of fmris they
2917 fmris = []
2927 fmris.append(tmp)
2931 []).append(fmris[0])
2934 for fmri in fmris
2981 # Build the list of fmris that 1) contain incorp. dependencies
2992 # list of the fmris that incorporation constrains
3007 """Given a list of fmris for various versions of
3068 # or just a string. fmri_adds are any fmris that caused the rejection
3082 """Trim any fmris older than this one"""
3188 # Find all the fmris that we depend on in our parent.
3322 # a list of sets, where each set represents all of the fmris
3414 """Return fmri_list trimmed of any fmris in self.__trim_dict"""