/pkg/src/tests/api/ |
H A D | t_fmri.py | 33 import pkg.fmri as fmri namespace 48 self.n1 = fmri.PkgFmri("pkg://pion/sunos/coreutils") 49 self.n2 = fmri.PkgFmri("sunos/coreutils") 50 self.n3 = fmri.PkgFmri("sunos/coreutils@5.10") 51 self.n4 = fmri.PkgFmri( 53 self.n5 = fmri.PkgFmri( 55 self.n6 = fmri.PkgFmri("coreutils") 56 self.n7 = fmri.PkgFmri( 58 self.n8 = fmri [all...] |
/pkg/src/modules/flavor/ |
H A D | smf_manifest.py | 143 def split_smf_fmri(fmri): 151 arr = fmri.split(":") 163 def search_smf_dic(fmri, dictionary): 170 protocol, service, instance = split_smf_fmri(fmri) 173 if fmri in dictionary: 174 results.append(dictionary[fmri]) 182 def get_smf_dependencies(fmri, instance_deps): 184 match more than one fmri, we raise an exception. """ 186 results = search_smf_dic(fmri, instance_deps) 196 results = search_smf_dic(fmri, SMFManifestDependenc [all...] |
/pkg/src/modules/client/ |
H A D | pkg_solver.py | 44 import pkg.fmri namespace 236 # Internal cache of created fmri objects. Used so that the same 490 pkg.fmri.extract_pkg_name( 491 da.attrs["fmri"])) 590 for fmri in self.__possible_dict[name]: 591 for da in self.__get_dependency_actions(fmri, 594 self.__gen_dependency_clauses(fmri, 708 for fmri in uninstall_fmris: 711 self.__trim_dict.get(fmri, EmptyI): 716 res = self.__fmri_list_errors([fmri], [all...] |
H A D | actuator.py | 78 "release-note": [(pkg.actions.generic.NSG, pkg.fmri.PkgFmri)], 86 "release-note": [(pkg.actions.generic.NSG, pkg.fmri.PkgFmri)], 94 "release-note": [(pkg.actions.generic.NSG, pkg.fmri.PkgFmri)], 191 def __scan(self, dictionary, act, fmri, actuator_attrs): 202 (act, fmri)) 224 return [(fmri, smf) 225 for fmri in merge 226 for smf in merge[fmri] 236 return [(fmri, smf) for fmri, sm [all...] |
/pkg/src/modules/actions/ |
H A D | attribute.py | 34 import pkg.fmri namespace 99 elif self.attrs["name"] in ("fmri", "pkg.fmri"): 100 fmri_obj = pkg.fmri.PkgFmri(self.attrs["value"]) 145 def validate(self, fmri=None): 153 'fmri' is an optional package FMRI (object or string) indicating 162 generic.Action._validate(self, fmri=fmri, 172 pkg.fmri.PkgFmri(f) 173 except pkg.fmri [all...] |
H A D | link.py | 69 fmri=pkgplan.destination_fmri) 125 def validate(self, fmri=None): 133 'fmri' is an optional package FMRI (object or string) indicating 136 errors = generic.Action._validate(self, fmri=fmri, 147 self, errors, fmri=fmri) 194 errors, fmri=fmri)
|
H A D | __init__.py | 111 if hasattr(self, "fmri") and self.fmri is not None: 113 "'{fmri}' in action '{action}'").format( 114 type=self.type, fmri=self.fmri, 129 if hasattr(self, "fmri") and self.fmri is not None: 130 return _("Malformed action in package '{fmri}' at " 132 "{marker}").format(fmri=self.fmri, [all...] |
H A D | directory.py | 80 fmri=pkgplan.destination_fmri, **kwargs) 115 fmri=pkgplan.destination_fmri) 138 self.validate(fmri=pkgplan.destination_fmri) 149 orig.validate(fmri=pkgplan.origin_fmri) 247 fmri=pkgplan.origin_fmri) 259 fmri=pkgplan.origin_fmri) 275 def validate(self, fmri=None): 283 'fmri' is an optional package FMRI (object or string) indicating 286 errors = generic.Action._validate(self, fmri=fmri, [all...] |
H A D | depend.py | 40 import pkg.fmri namespace 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 [all...] |
H A D | generic.py | 664 fmri=kw.get("fmri")) 703 fmri=kw.get("fmri")) 845 def get_fsobj_uid_gid(self, pkgplan, fmri): 864 self.validate(fmri=fmri) 878 fmri=fmri) 893 fmri [all...] |
H A D | group.py | 116 fmri=pkgplan.destination_fmri) 134 details=txt, fmri=pkgplan.destination_fmri) 221 def validate(self, fmri=None): 229 'fmri' is an optional package FMRI (object or string) indicating 233 generic.Action._validate(self, fmri=fmri,
|
/pkg/src/modules/ |
H A D | fmri.py | 52 def __init__(self, fmri): 54 self.fmri = fmri 65 def __init__(self, fmri, reason, detail=None, nested_exc=None): 66 FmriError.__init__(self, fmri) 72 outstr = "{0} '{1}': ".format(self.msg_prefix, self.fmri) 87 the fmri since version information is missing.""" 91 self.fmri) 111 def __init__(self, fmri=None, build_release=None, publisher=None, 113 if fmri i [all...] |
H A D | smf.py | 98 def get_state(fmri, zone=None): 101 props = get_props(fmri, zone=zone) 118 def is_disabled(fmri, zone=None): 119 return get_state(fmri, zone=zone) < SMF_SVC_TMP_ENABLED 125 one special match character from fnmatch(7) the fmri is dropped 132 for fmri in fmris.copy(): 135 if c in fmri: 138 tmp_fmri = fmri 139 if fmri.startswith("svc:"): 140 tmp_fmri = fmri [all...] |
H A D | api_common.py | 35 import pkg.fmri as fmri namespace 64 def fmri(self): member in class:LicenseInfo 111 could need. The fmri is guaranteed to be set. All other values may 155 self.fmri = pfmri 168 return str(self.fmri) 175 pub = fmri.strip_pub_pfx(pub)
|
/pkg/src/modules/lint/ |
H A D | pkglint_manifest.py | 33 import pkg.fmri as fmri namespace 62 name = os.path.basename(manifest.fmri.get_name()) 64 dic[name].append(manifest.fmri) 66 dic[name] = [manifest.fmri] 70 dependencies, keyed by the depend action fmri name. 74 name = mf.fmri 78 dep = action.attrs["fmri"] 81 f = fmri.PkgFmri(dep) 87 f = fmri [all...] |
H A D | pkglint_action.py | 32 import pkg.fmri namespace 40 ObsoleteFmri = collections.namedtuple("ObsoleteFmri", "is_obsolete, fmri") 50 # action and the fmri that delivers that action, to allow for a 51 # given fmri delivering multiple copies of actions that install 53 # eg. pathdb[path] = [(fmri, action), (fmri, action) ... ] 111 """Updates a dictionary of { attr: [(fmri, action), ..]} 143 dic[p] = [(mf.fmri, action)] 145 dic[p].append((mf.fmri, action)) 155 m.fmri [all...] |
H A D | engine.py | 33 import pkg.fmri namespace 111 fmri ="pkg://{0}/{1}@{2}".format(pub, name, 113 pfmri = pkg.fmri.PkgFmri(fmri) 127 fmri ="pkg://{0}/{1}@{2}".format(pub, name, 134 pfmri = pkg.fmri.PkgFmri(fmri) 170 if pattern and pkg.fmri.glob_match( 171 str(mf.fmri), pattern): 198 if pkg.fmri [all...] |
H A D | opensolaris.py | 70 "{pkg}").format(key=key, pkg=manifest.fmri),
|
H A D | base.py | 34 import pkg.fmri as fmri namespace 174 for dep in action.attrs["fmri"]: 175 fmris.add(fmri.extract_pkg_name(dep)) 182 # Record the fmri set of action we have generated. 248 mf=manifest.fmri, 257 mf=manifest.fmri, 342 mf=manifest.fmri, 349 mf=manifest.fmri, 431 manifest=manifest.fmri)) [all...] |
/pkg/src/tests/perf/ |
H A D | fmribench.py | 29 # fmribench - benchmark fmri creation and other related operations 35 import pkg.fmri as fmri namespace 100 [ "fmri create (string)", 50000, 101 """import pkg.fmri as fmri""", 102 """f = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")""" 105 [ "fmri create (parts)", 50000, 106 """import pkg.fmri as fmri""", [all...] |
H A D | membench.py | 34 import pkg.fmri as fmri namespace 53 return fmri.PkgFmri("pkg:/SUNWttf-google-droid@0.5.11,5.11-0.121:20090816T233516Z") 56 return fmri.PkgFmri("pkg:/SUNWttf-google-{0:d}@0.5.11,5.11-0.{1:d}:{2:0=8d}T233516Z".format(num, num, num))
|
/pkg/src/tests/cli/ |
H A D | t_publish_api.py | 38 import pkg.fmri as fmri namespace 66 pf = fmri.PkgFmri("foo@{0:d}.0".format(i)) 92 pf = fmri.PkgFmri("foo@{0:d}.0".format(i))
|
H A D | t_pkg_intent.py | 35 import pkg.fmri as fmri namespace 59 add depend type=require fmri=pkg:/foo@1.0 66 add depend type=require fmri=pkg:/foo@1.2 73 add depend type=require fmri=pkg:/foo@1.0 80 add depend type=require fmri=pkg:/bar@1.0 188 foo = fmri.PkgFmri(plist[0]).get_fmri(anarchy=True) 215 foo10 = fmri.PkgFmri(plist[0]).get_fmri(anarchy=True) 216 foo11 = fmri.PkgFmri(plist[1]).get_fmri(anarchy=True) 257 foo = fmri [all...] |
/pkg/src/modules/server/ |
H A D | transaction.py | 41 import pkg.fmri as fmri namespace 144 self.fmri = None 158 quote(str(self.fmri), "")) 179 self.fmri = fmri.PkgFmri(self.pkg_name, 181 except fmri.FmriError as e: 185 if self.fmri.version is None: 191 if not self.fmri.publisher: 198 self.fmri [all...] |
/pkg/src/util/publish/ |
H A D | pkgmerge.py | 43 import pkg.fmri namespace 184 def get_manifest(repouri, fmri): 185 """Fetch the manifest for package-fmri 'fmri' from the source 189 if not fmri: 192 mfst_str = xport.get_manifest(fmri, pub=repouri, content_only=True) 193 m = manifest.Manifest(fmri) 392 # fmri for this pkg then use None. 505 f = man.fmri 547 a.attrs["name"] == "pkg.fmri") [all...] |