/pkg/src/modules/client/ |
H A D | pkgremote.py | 63 # variables to keep track of our RPC client call state. 69 # initialize RPC server process state 75 # initialize RPC client process state 79 # initialize RPC client call state 87 # sanity check the idle state by re-initializing it 160 # initalization successful, update RPC server state 193 # initalization successful, update RPC client state 209 # clear server state (which closes the rpc pipe file 240 def __state_verify(self, state=None): 241 """Sanity check our internal call state [all...] |
H A D | plandesc.py | 88 """Returns the serialized state of this object in a format 94 def fromstate(state, jd_state=None): 95 """Allocate a new object using previously serialized state 102 # decode serialized state into python objects 103 state = pkg.misc.json_decode(name, state, 106 return _ActionPlan(*state) 167 self.state = UNEVALUATED 171 # Properties set when state >= EVALUATED_PKGS 203 # Properties set when state > [all...] |
H A D | actuator.py | 114 """Returns the serialized state of this object in a format 120 def setstate(obj, state, jd_state=None): 121 """Update the state of this object using previously serialized 122 state obtained via getstate().""" 127 # decode serialized state into python objects 128 state = pkg.misc.json_decode(name, state, 132 obj.__dict__.update(state) 135 def fromstate(state, jd_state=None): 136 """Allocate a new object using previously serialized state [all...] |
H A D | pkgplan.py | 101 # figure out which state we are saving. 104 # describe our state and the types of all objects 144 """Returns the serialized state of this object in a format 147 # validate unserialized state 153 # we use __slots__, so create a state dictionary 154 state = {} 156 state[k] = getattr(obj, k) 158 return pkg.misc.json_encode(PkgPlan.__name__, state, 163 def setstate(obj, state, jd_state=None): 164 """Update the state o [all...] |
H A D | history.py | 172 # The starting state of the operation (e.g. image plan pre-evaluation). 174 # The ending state of the operation (e.g. image plan post-evaluation). 266 # of history and operation state information. 343 # Before a new operation starts, clear exception state 651 state = d.createElement("start_state") 652 op.appendChild(state) 653 state.appendChild(d.createCDATASection( 657 state = d.createElement("end_state") 658 op.appendChild(state) 659 state [all...] |
H A D | imageplan.py | 138 if self.pd.state == plandesc.UNEVALUATED: 144 if self.pd.state < plandesc.EVALUATED_PKGS: 166 assert plan.state in [ 178 if self.pd.state == plandesc.UNEVALUATED: 199 assert self.pd.state in \ 201 "{0} not in [{1}, {2}]".format(self.pd.state, 204 if self.pd.state == plandesc.PREEXECUTED_OK: 216 self.pd.state = plandesc.PREEXECUTED_OK 219 def state(self): member in class:ImagePlan 220 return self.pd.state [all...] |
H A D | client_api.py | 1484 """Attempt to take package specified to INSTALLED state. The operands 1563 """Attempt to take package specified to DELETED state.""" 1825 # each refresh requires a client image state rebuild. 2312 state = "" 2314 state = _("Installed") 2316 state = _("Unsupported") 2318 state = _("Not installed") 2322 state += " ({0}".format(_("Obsolete")) 2325 state += " ({0}".format(_("Renamed")) 2329 state [all...] |
H A D | rad_pkg.py | 138 for n in ("state", "pkg"): 311 state = property(get_any("_state"), set_any("_state")) variable in class:PkgInfo
|
H A D | api_errors.py | 322 def __init__(self, state): 324 self.state = state 329 result of an image state change since the plan was created.""" 345 return _("Invalid package state change attempted '{states}' " 488 due to unexpected changes in image state after planning was completed. 1445 """This is used when the index is not in a correct state.""" 3312 """Used to indicate the freeze state file could not be loaded.""" 3315 return _("The freeze state file '{0}' is invalid.").format( 3319 """Used when the version on the freeze state fil [all...] |
/pkg/src/modules/actions/ |
H A D | _actions.c | 177 } state, prevstate; local 291 prevstate = state = WS; 297 if (state == KEY) { 324 prevstate = state; 325 state = WS; 373 prevstate = state; 374 state = QVAL; 383 prevstate = state; 384 state = UQVAL; 392 } else if (state [all...] |
H A D | generic.py | 128 """Returns the serialized state of this object in a format 133 def fromstate(state, jd_state=None): 134 """Allocate a new object using previously serialized state 136 return pkg.actions.fromstr(state)
|
/pkg/src/modules/ |
H A D | smf.py | 99 """ return state of smf service """ 105 if "maintenance" in props.get("restarter/state", []): 217 def mark(state, fmris, zone=None): 222 args = [svcadm_path, "mark", state]
|
H A D | facet.py | 110 """Returns the serialized state of this object in a format 122 def fromstate(state, jd_state=None): 123 """Update the state of this object using previously serialized 124 state obtained via getstate().""" 127 for k, v, inhertited in state:
|
H A D | fmri.py | 163 """Returns the serialized state of this object in a format 168 def fromstate(state, jd_state=None): 169 """Allocate a new object using previously serialized state 171 return PkgFmri(state)
|
H A D | version.py | 346 """Returns the serialized state of this object in a format 351 def fromstate(state, jd_state=None): 352 """Allocate a new object using previously serialized state 354 return Version(state, None)
|
H A D | manifest.py | 103 """Returns the serialized state of this object in a format 112 def fromstate(state, jd_state=None): 113 """Allocate a new object using previously serialized state 116 # decode serialized state into python objects 117 state = misc.json_decode(ManifestDifference.__name__, 118 state, 123 return ManifestDifference(*state)
|
/pkg/src/modules/publish/ |
H A D | transaction.py | 172 a package fmri (if applicable) and the final state of the 547 a package fmri (if applicable) and the final state of the 561 state, fmri = self.transport.publish_abandon( 581 state, fmri = self.transport.publish_close( 591 return state, fmri
|
/pkg/src/modules/client/linkedimage/ |
H A D | zone.py | 263 # state is unused 265 for zone, (path, state) in six.iteritems(zdict): 446 tuples containing zone root path and current state. The global zone is
|
H A D | common.py | 268 only affect in-memory state of the current image. It should 269 not update any persistent on-disk linked image state or access 278 only affect in-memory state of the current image. It should 279 not update any persistent on-disk linked image state or access 286 """Sync out the in-memory linked image state of this image to 346 """Returns the serialized state of this object in a format 352 def fromstate(state, jd_state=None): 353 """Allocate a new object using previously serialized state 356 return LinkedImageName(state) 550 new properties, updates them, and resets any cached state [all...] |
/pkg/src/ |
H A D | depot-config.py | 612 state = smf.get_prop(fmri, "restarter/state") 616 if (state == "online" and 719 # a volatile directory used at runtime for storing state
|
H A D | pkgrepo.py | 947 state = None 952 state = "o" 955 state = "r" 976 "short_state": state,
|
H A D | client.py | 30 # The client is going to maintain an on-disk cache of its state, so that 2197 """Attempt to take package specified to INSTALLED state. 2213 """Attempt to take package specified to INSTALLED state. The operands 2245 """Attempt to take package specified to DELETED state.""" 2276 """Attempt to revert files to their original state, either 4748 # omitting start state, end state, errors for now 5027 state = he.operation_start_state 5028 if state: 5029 data.append((_("Start State"), "\n" + state)) [all...] |
/pkg/src/modules/client/transport/ |
H A D | repo.py | 156 a (publish-state, fmri) tuple.""" 165 (publish-state, fmri) tuple.""" 892 a (publish-state, fmri) tuple.""" 902 state = fobj.getheader("State", None) 922 return state, pkgfmri 929 (publish-state, fmri) tuple.""" 946 state = fobj.getheader("State", None) 967 return state, pkgfmri 1773 transaction id in trans_id. Returns a (publish-state, fmri) 1791 (publish-state, fmr [all...] |
H A D | transport.py | 599 be restarted. This clears the state of the 2915 state, fmri = d.publish_abandon(header=header, 2917 return state, fmri 2949 state, fmri = d.publish_close(header=header, 2952 return state, fmri
|
/pkg/src/tests/cli/ |
H A D | t_depot_config.py | 114 # of the format <fmri>%<state> 137 echo $service | sed -e 's/%/ /' | read fmri state 147 echo $service | sed -e 's/%/ /' | read fmri state 148 printf "%-14s%9s %s\n" $state 00:00:00 $fmri 157 # of the format <fmri>%<state>%<inst_root>%<readonly>%<standalone>%<writable_root> 176 read fmri state inst_root readonly standalone writable_root 179 prop_state[$fmri]=$state 201 "restarter/state") 307 state = conf[1] 309 _svcprop_conf[index].insert(1, state) [all...] |