Searched refs:get (Results 1 - 25 of 103) sorted by relevance

12345

/pkg/src/util/log-scripts/
H A Din_header.py30 hostname = config.get("hostname", default="pkg")
H A Dconfig.py32 def get(option, default=None): function
35 value = cfg.get("default", option)
/pkg/src/modules/
H A Dp5s.py96 plist = dump_struct.get("publishers", [])
101 alias = p.get("alias", None)
102 prefix = p.get("name", None)
103 sticky = p.get("sticky", True)
110 v = p.get("signature-policy")
113 v = p.get("signature-required-names")
117 r = p.get("repository", None)
123 val = r.get(prop, None)
129 val = r.get(prop, [])
135 urls = r.get(pro
[all...]
H A Dp5i.py103 plist = dump_struct.get("publishers", [])
106 alias = p.get("alias", None)
107 prefix = p.get("name", None)
113 pkglist = p.get("packages", [])
116 for r in p.get("repositories", []):
122 val = r.get(prop, None)
129 val = r.get(prop, [])
137 pkglist = dump_struct.get("packages", [])
H A Ddigest.py397 new_hash = action.attrs.get(attr)
398 old_hash = old_action.attrs.get(attr)
407 action.attrs.get(attr, {}))
409 old_action.attrs.get(attr, {}))
418 new_hash = nh.get(ch_type)
419 old_hash = oh.get(ch_type)
437 return attr, new_hash, old_hash, hash_dic.get(ch_type)
444 new_hash = action.attrs.get(attr)
445 old_hash = old_action.attrs.get(attr)
H A Dmediator.py145 aprio = _MED_PRIORITIES.get(a[0], 3)
146 bprio = _MED_PRIORITIES.get(b[0], 3)
/pkg/src/modules/client/
H A Dactuator.py124 # get the name of the object we're dealing with
208 # needs to get executed, simply print true.
231 return self.update.get("release-note", []) + \
232 self.install.get("release-note", [])
247 return bool("true" in self.install.get("reboot-needed", []))
253 return bool("true" in self.update.get("reboot-needed", [])) or \
254 bool("true" in self.removal.get("reboot-needed", []))
306 suspend_fmris = self.update.get("suspend_fmri", set())
309 disable_fmris = self.removal.get("disable_fmri", set())
375 refresh_fmris = self.removal.get("refresh_fmr
[all...]
H A D__init__.py88 self.client_concurrency = int(os.environ.get(
124 self.PKG_CLIENT_MAX_TIMEOUT = int(os.environ.get(
133 self.PKG_CLIENT_CONNECT_TIMEOUT = int(os.environ.get(
142 self.PKG_CLIENT_LOWSPEED_TIMEOUT = int(os.environ.get(
152 os.environ.get("PKG_CLIENT_MAX_CONSECUTIVE_ERROR",
161 os.environ.get("PKG_CLIENT_MAX_REDIRECT",
H A Dbootenv.py182 # Unable to get the list of BEs
229 # We will get here if we don't find find any BE's. e.g
373 # Unable to get the list of BEs.
591 # flush() is necessary here so that the warnings get printed
648 # flush() is necessary here so that the warnings get printed
734 be_name = beVals.get("orig_be_name")
738 if not be_name or not beVals.get("mounted"):
747 if not beVals.get("active"):
752 if beVals.get("mountpoint") != self.root:
759 self.dataset = beVals.get("datase
[all...]
H A Ddebugvalues.py51 return self.get(item, None)
H A Dpkgplan.py167 # get the name of the object we're dealing with
397 self.__destination_mfst.get("pkg.summary",
398 self.__destination_mfst.get("description", "none provided"))
401 self.actions.changed.extend(self.__repair_actions.get("install",
403 self.actions.removed.extend(self.__repair_actions.get("remove",
416 src_ma = src.attrs.get("must-accept", False)
417 dest_ma = dest.attrs.get("must-accept", False)
495 len(dest.attrs.get("chain",
506 return (a[0] + int(b[1].attrs.get("pkg.csize" ,0)),
507 a[1] + int(b[1].attrs.get("pk
[all...]
H A Dimageplan.py240 """get the (approx) number of bytes added"""
244 """get the (approx) number of bytes needed in download cache"""
249 """get the (approx) number of bytes space available"""
253 """get the (approx) number of download space available"""
322 # get the existing image facets.
333 # get the latest inherited facets and merge them into the user
457 'values' contains the fmris of the pkgs which should get
543 # will get installed when an update is specified.
600 # get ranking of publishers
919 # get publisher
[all...]
H A Dprintengine.py107 "'{0}'".format(os.environ.get("TERM", "")))
149 sep = kwargs.get("sep", ' ')
150 outmsg = sep.join(args) + kwargs.get("end", '\n')
152 if kwargs.get("erase"):
164 # get flush()'d by a consumer, we need to issue an
H A Dimageconfig.py426 self.variants.update(idx.get("variant", {}))
429 for k, v in six.iteritems(idx.get("variant", {})):
432 for k, v in six.iteritems(idx.get("facet", {})):
435 for k, v in six.iteritems(idx.get("inherited_facet", {})):
481 for k, v in six.iteritems(idx.get("policy", {})):
505 for entry, value in six.iteritems(idx.get("mediators", {})):
769 # changed later, clients will automatically get that
843 origins = sec_idx.get("origins", [])
844 origin = sec_idx.get("origin", None)
848 mirrors = sec_idx.get("mirror
[all...]
/pkg/src/modules/actions/
H A Dlink.py150 mediator = self.attrs.get("mediator")
151 med_version = self.attrs.get("mediator-version")
152 med_implementation = self.attrs.get("mediator-implementation")
153 med_priority = self.attrs.get("mediator-priority")
H A Ddirectory.py67 int(self.attrs.get("mode", "0"), 8) == int(other.attrs.get("mode", "0"), 8):
134 mode = int(self.attrs.get("mode", None), 8)
145 omode = int(orig.attrs.get("mode", None), 8)
238 if not self.attrs.get("implicit"):
252 if not self.attrs.get("implicit"):
H A Dfile.py135 mode = int(self.attrs.get("mode", None), 8)
190 if orig.attrs.get("preserve", None) != "legacy":
305 sattr = self.attrs.get("sysattr")
351 if self.attrs.get("preserve") == "abandon":
374 preserve = self.attrs.get("preserve")
386 pkg_size = int(self.attrs.get("pkg.size", 0))
410 is_mtpt = self.attrs.get("mountpoint", "").lower() == "true"
493 sattr = self.attrs.get("sysattr", None)
592 # not share a common hash (in which case, we get a tuple
724 save_file = self.attrs.get("save_fil
[all...]
H A Duser.py102 self.as_set(out.get(attr, [])) |
182 final_attrs.get("ftpuser", "true") == "true")
207 group=self.attrs.get("group", "None"))
247 group=self.attrs.get("group", "None")))
372 a = int(self.attrs.get("uid", 1024))
373 b = int(other.attrs.get("uid", 1024))
H A Dgeneric.py293 # Sort so that we get consistent action attribute ordering.
365 # Sort so that we get consistent action attribute ordering.
614 self.name, self.attrs.get(self.key_attr, "???"))
664 fmri=kw.get("fmri"))
672 # directories will not get their permissions corrected.
674 mode = kw.get("mode", fs.st_mode)
675 uid = kw.get("uid", fs.st_uid)
676 gid = kw.get("gid", fs.st_gid)
703 fmri=kw.get("fmri"))
714 mode = kw.get("mod
[all...]
H A Dsignature.py144 # cert, so get the preferred chain hash value from the
151 chain_val = hshes.get(attr)
190 for s in self.attrs.get("chain.sizes", "").split():
196 for s in self.attrs.get("chain.csizes", "").split():
204 for c, s in zip(self.attrs.get("chain", "").split(),
205 self.attrs.get("chain.csizes", "").split()):
211 for c, s in zip(self.attrs.get("chain", "").split(),
212 self.attrs.get("chain.sizes", "").split()):
247 size = int(self.attrs.get("pkg.size", 0))
288 sizes = self.attrs.get("chai
[all...]
/pkg/src/modules/lint/
H A Dconfig.py94 self.config.get("pkglint", "log_level")
H A Dbase.py102 excl = self.config.get("pkglint", "pkglint.exclude")
289 self.classification_path = config.get(
363 exclude = config.get("pkglint", "pkglint.exclude")
407 val = action.attrs.get(key, "false")
423 val = manifest.attributes.get(key, "false")
/pkg/src/modules/publish/
H A Dtransaction.py88 url=self.data, msg=self._args.get("msg", ""))
102 trans_id=self._args.get("trans_id", ""),
104 msg=self._args.get("msg", ""))
105 if self._args.get("trans_id", None):
109 msg=self._args.get("msg", ""),
114 msg=self._args.get("msg", ""))
116 self._args.get("msg", ""))
131 type=self._args.get("type", ""))
288 man = self.__transactions.get(self.trans_id)
312 """Helper function to get th
[all...]
/pkg/src/modules/bundle/
H A DSolarisPackageDirBundle.py58 self.hollow = self.pkg.pkginfo.get("SUNW_PKG_HOLLOW",
77 yield act.attrs.get("path"), act
83 yield act.attrs.get("path"), act
104 yield act.attrs.get("path"), act
148 yield os.path.join(d, act.attrs.get(
183 preserve = preserve_dict.get(mapline.klass, None)
238 # these keys get converted to a legacy action
/pkg/src/modules/flavor/
H A Dscript.py82 run_paths = kwargs.get("run_paths", [])
86 ex_bit = int(action.attrs.get("mode", "0"), 8) & \

Completed in 47 milliseconds

12345