Lines Matching refs:pkg_name

176         def get_latest(self, api_inst, pkg_name):
177 """ Return the package matching pkg_name from the publishers set
183 if pkg_name in self.latest_cache[api_inst]:
184 return self.latest_cache[api_inst][pkg_name]
202 def add(self, api_inst, pkg_name, manifest):
206 self.misc_cache[api_inst][pkg_name] = manifest
208 def get(self, api_inst, pkg_name):
209 """Retrieves a given pkg_name entry from the cache.
213 if pkg_name in self.latest_cache[api_inst]:
214 return self.latest_cache[api_inst][pkg_name]
216 return self.misc_cache[api_inst][pkg_name]
685 def get_manifest(self, pkg_name, search_type=EXACT, reference=False):
691 pkg_name, throwing a LintEngineException if we get more than
692 one match for the supplied pkg_name.
702 if not pkg_name.startswith("pkg:/"):
703 pkg_name = "pkg:/{0}".format(pkg_name)
705 def build_fmri(pkg_name):
708 fmri = pkg.fmri.PkgFmri(pkg_name)
715 fmri = pkg.fmri.PkgFmri(pkg_name)
719 "{0}").format(pkg_name)
722 def get_fmri(api_inst, pkg_name):
723 """Retrieve an fmri string that matches pkg_name."""
725 if "*" in pkg_name or "?" in pkg_name:
727 _("invalid pkg name {0}").format(pkg_name))
729 if "@" not in pkg_name and self.release:
730 pkg_name = "{0}@{1}{2}".format(
731 pkg_name, self.version_pattern,
737 patterns=[pkg_name], variants=True,
757 pattern=pkg_name,
762 def mf_from_image(api_inst, pkg_name, search_type):
768 search_fmri = build_fmri(pkg_name)
770 # we want to normalize the pkg_name, removing
788 mf = self.mf_cache.get(api_inst, pkg_name)
792 fmri = get_fmri(api_inst, pkg_name)
796 self.mf_cache.add(api_inst, pkg_name, mf)
807 return mf_from_image(self.ref_api_inst, pkg_name,
811 search_fmri = build_fmri(pkg_name)
817 if str(mf.fmri) == pkg_name:
819 if mf.fmri.get_name() == pkg_name:
821 mf = mf_from_image(self.lint_api_inst, pkg_name, search_type)
826 return mf_from_image(self.ref_api_inst, pkg_name, search_type)
1082 def follow_renames(self, pkg_name, target=None, old_mfs=[],
1086 pkg_name, looking for the package we expect to be at the end of
1101 # matching the pkg_name is enough so long as that package is
1105 if leaf_name == pkg_name:
1112 mf = self.get_manifest(pkg_name,