/pkg/src/modules/ |
H A D | digest.py | 276 # The corresponding hash attr should be in the 278 attr = hash_attrs[0] 280 return attr, None, hash_dic[attr] 283 return attr, action.hash, hash_dic[attr] 285 if attr in action.attrs: 286 return (attr, action.attrs[attr], 287 hash_dic[attr]) [all...] |
H A D | sysattr.py | 35 def is_supported(attr): 36 """Test if a sys attr is not in the list of ignored attributes.""" 42 if i == attr: 87 raise OSError("could not read attr value") 108 def fsetattr(filename, attr): 125 if not attr: 126 raise TypeError("{0} is not a valid system attribute".format(attr)) 138 if isinstance(attr, six.string_types): 141 for c in attr: 151 "attribute".format(attr)) [all...] |
H A D | _varcet.c | 42 PyObject *attr = NULL; local 81 while (PyDict_Next(act_attrs, &fpos, &attr, &value)) { 82 char *as = PyBytes_AS_STRING(attr); 86 PyObject *facet = PyDict_GetItem(facets, attr); 100 "match", "O", attr); 188 PyObject *attr = NULL; local 202 while (PyDict_Next(act_attrs, &pos, &attr, &value)) { 203 char *as = PyBytes_AS_STRING(attr); 205 PyObject *sysv = PyDict_GetItem(vars, attr);
|
H A D | mogrify.py | 76 attr, value = shlex.split(op[1]) 82 newattr = substitute_values(attr, action, matches, 96 attr, value = shlex.split(op[1]) 103 newattr = substitute_values(attr, action, matches, 149 attr, value = shlex.split(op[1]) 156 newattr = substitute_values(attr, action, matches, 182 attr = args[0] 206 newattr = substitute_values(attr, action, matches, 250 attr = args[0] 261 val = attrval_as_list(action.attrs, attr) [all...] |
H A D | misc.py | 611 for attr in hash_attrs: 616 if attr != "pkg.content-hash": 617 hash_results[attr] = hash_algs[attr]() 630 for attr in hash_attrs: 631 if attr != "pkg.content-hash": 632 hash_results[attr].update( 648 for attr in hash_results: 649 hash_results[attr] = hash_results[attr] [all...] |
H A D | manifest.py | 77 for (attr, matches) in six.iteritems(attr_match): 78 if attr in action.attrs: 80 for attrval in action.attrlist(attr): 474 for attr, val in six.iteritems(attrs): 475 if attr[:8] == "variant.": 476 variants[attr].add(val) 477 avariants.append((attr, val)) 478 elif attr[:6] == "facet.": 479 afacets.append((attr, val)) 513 # is desirable when generating the variant attr anywa [all...] |
H A D | version.py | 668 for attr, vals in ( 676 if attr != 'timestr': 678 setattr(self, attr, val)
|
H A D | cfgfiles.py | 454 for attr in attributes: 455 a = re.split("(?<=[^\\\\])=", attr)
|
H A D | smf.py | 121 def check_fmris(attr, fmris, zone=None): 159 logger.error(_("Actuators for {attr} will not be run " \
|
/pkg/src/modules/actions/ |
H A D | signature.py | 108 for attr in digest.DEFAULT_CHAIN_ATTRS: 109 chain_hshes[attr] = [] 110 for attr in digest.DEFAULT_CHAIN_CHASH_ATTRS: 111 chain_chshes[attr] = [] 140 for attr in hshes: 141 chain_hshes[attr].append(hshes[attr]) 148 attr = "chain" 150 attr = "pkg.chain.{0}".format(alg) 151 chain_val = hshes.get(attr) [all...] |
H A D | user.py | 75 for attr in on_disk: 76 if (attr in out and 77 attr not in self.use_existing_attrs) or \ 78 (attr in old_plan and 79 old_plan[attr] == on_disk[attr]): 83 if attr == "uid" and attr not in out: 84 out[attr] = on_disk[attr] [all...] |
H A D | _actions.c | 56 add_to_attrs(PyObject *attrs, PyObject *key, PyObject *attr, bool concat) argument 63 return (PyDict_SetItem(attrs, key, attr)); 82 /* decrefing "attr" is handled by caller */ 84 str = PyUnicode_Concat(str, attr); 86 PyString_Concat(&str, attr); 93 return (PyList_Append(av, attr)); 96 /* decrefing "attr" is handled by caller */ 98 av = PyUnicode_Concat(av, attr); 100 PyString_Concat(&av, attr); 115 Py_INCREF(attr); 171 PyObject *attr = NULL; local [all...] |
H A D | license.py | 184 for attr in digest.DEFAULT_HASH_ATTRS: 186 if attr == "hash": 188 hash = self.attrs[attr] 189 indices.append(("license", attr, hash, None))
|
H A D | generic.py | 1195 for attr in self.attrs: 1196 if ((attr.startswith("facet.") or 1197 attr == "reboot-needed" or attr in single_attrs) and 1198 type(self.attrs[attr]) is list): 1199 errors.append((attr, _("{0} may only be " 1200 "specified once").format(attr))) 1201 elif attr in numeric_attrs: 1203 int(self.attrs[attr]) 1205 errors.append((attr, [all...] |
H A D | depend.py | 523 for attr in ("predicate", "fmri"): 524 for f in self.attrlist(attr): 529 if attr == "fmri" and f == "__TBD": 534 attr, 535 _("invalid {attr} value " 537 format(attr=attr,
|
H A D | file.py | 312 # not a verbose attr, try as a compact attr seq 500 # not a verbose attr, try as a compact 819 for attr in digest.DEFAULT_HASH_ATTRS: 822 hash = self.attrs.get(attr) 823 if attr != "hash" and hash is not None: 824 index_list.append(("file", attr, hash, None))
|
/pkg/src/tests/api/ |
H A D | t_action.py | 69 "file 12345 name=foo attr=bar path=/tmp/foo", 70 "file 12345 name=foo attr=bar attr=bar path=/tmp/foo", 71 "file 12345 name=foo attr=bar path=/tmp/foo", 72 "file 12345 name=foo path=/tmp/foo attr=bar ", 73 "file 12345 name=foo path=/tmp/foo attr=bar ", 74 "file 12345 name=\"foo bar\" attr=\"bar baz\" path=/tmp/foo", 75 "file 12345 name=\"foo bar\" attr=\"bar baz\" path=/tmp/foo", 93 def assertAttributeValue(self, action, attr, value): 94 attrs = action.attrs[attr] [all...] |
H A D | t_manifest.py | 519 "{0}={1}".format(attr, a.attrs[attr]) 520 for attr in itertools.chain(
|
/pkg/src/modules/client/ |
H A D | history.py | 120 for attr in ("name", "start_time", "end_time", "start_state", 125 setattr(h, attr, getattr(self, attr)) 290 for attr in ("root_dir", "client_name", "client_version"): 291 setattr(h, attr, getattr(self, attr)) 885 for attr in ("root_dir", "client_name", "client_version"): 886 attrs[attr] = getattr(self, attr)
|
H A D | rad_pkg.py | 163 def set_any(attr): 167 setattr(self, attr, val) 170 def get_any(attr): 174 return getattr(self, attr)
|
/pkg/src/modules/lint/ |
H A D | pkglint_action.py | 110 def seed_dict(mf, attr, dic, atype=None, verbose=False): 111 """Updates a dictionary of { attr: [(fmri, action), ..]} 112 where attr is the value of that attribute from 129 if attr not in action.attrs: 141 p = action.attrs[attr] 304 for attr, ref_dic, processed_dic in [ 308 p = action.attrs.get(attr, None) 353 attr = {} 363 if val in attr: 364 attr[va [all...] |
H A D | engine.py | 1194 def get_attr_action(self, attr, manifest): 1202 if attr not in manifest: 1204 _("{0} is not set in manifest").format(attr)) 1206 if action.attrs.get("name", "") == attr:
|
/pkg/src/util/publish/ |
H A D | pkgfmt.py | 252 for attr in ("pkg.summary", "pkg.description"): 254 a[0].attrs["name"] == attr and 255 not b[0].attrs["name"] == attr): 258 b[0].attrs["name"] == attr and 259 not a[0].attrs["name"] == attr):
|
/pkg/src/tests/cli/ |
H A D | t_pkg_depotd.py | 276 attr = fields[0].strip() 277 if attr == "License": 279 if attr in attr_list: 281 info_dic[attr] = fields[1].strip() 283 info_dic[attr] = "" 1009 for attr, val in six.iteritems(self.pub_repo_cfg): 1010 setattr(pub_repo, attr, val)
|
/pkg/src/ |
H A D | client.py | 3071 len(attr[0]) 3072 for attr in pis 3079 attr, kval = tuple(attr_l) 3080 label = "{0}: ".format(attr.rjust(max_width)) 3102 widths = [ len(attr) - attr.find(".") - 1 for attr in attrs ] 3113 def __chose_just(attr): 3114 if attr in ["action.name", "action.key", "action.raw", 3118 return [ __chose_just(attr) fo [all...] |