Lines Matching refs:fmri

40 import pkg.fmri
58 # this is a special package name that when present in an fmri defines a
66 """Class representing a dependency packaging object. The fmri attribute
98 avoid list; version part of fmri is ignored. Obsolete packages
102 required unless stem is in image avoid list; version part of fmri is
108 key_attr = "fmri"
115 def __check_parent_installed(self, image, fmri):
129 if fmri.pkg_name not in ppkgs_dict:
132 "parent image {0}").format(fmri.pkg_name))
135 pf = ppkgs_dict[fmri.pkg_name]
136 if fmri.publisher and fmri.publisher != pf.publisher:
143 if pf.version == fmri.version or pf.version.is_successor(
144 fmri.version, pkg.version.CONSTRAINT_AUTO):
148 if pf.version.is_successor(fmri.version,
203 # the fmri for the package containing this action should
219 # get a list of fmris and do fmri token substitution
221 for i in self.attrlist("fmri"):
222 f = pkg.fmri.PkgFmri(i)
263 cfmri = pkg.fmri.PkgFmri(self.attrs["predicate"])
343 pfmris = self.attrs["fmri"]
360 # Strip pkg:/ or pkg:/// from the fmri.
361 # If fmri has pkg:// then strip the prefix
400 # and fmri should always come after type.
401 if a[0] == "fmri":
481 def validate(self, fmri=None):
489 'fmri' is an optional package FMRI (object or string)
492 required_attrs = ["type", "fmri"]
501 single_attrs.append("fmri")
504 self, fmri=fmri, raise_errors=False,
521 # Logic here intentionally treats 'predicate' and 'fmri' as
523 for attr in ("predicate", "fmri"):
526 pkg.fmri.PkgFmri(f)
528 pkg.fmri.FmriError) as e:
529 if attr == "fmri" and f == "__TBD":
544 errors, fmri=fmri)