/pkg/src/modules/portable/ |
H A D | os_sunos.py | 55 def get_file_type(actions): 58 for a in actions: 64 assert(len(actions) == len(res)) 70 a = actions[i]
|
H A D | __init__.py | 76 def get_file_type(actions):
|
/pkg/src/modules/bundle/ |
H A D | DirectoryBundle.py | 34 import pkg.actions.file namespace 35 import pkg.actions.link namespace 36 import pkg.actions.hardlink namespace 40 tree to a pkg(7) package by traversing the tree and emitting actions for 119 # of known targets. Create file actions for known 125 return pkg.actions.file.FileAction( 133 return pkg.actions.hardlink.HardLinkAction( 136 return pkg.actions.link.LinkAction( 139 return pkg.actions.directory.DirectoryAction(
|
H A D | SolarisPackageDirBundle.py | 33 from pkg.actions import * 34 from pkg.actions.attribute import AttributeAction 35 from pkg.actions.legacy import LegacyAction 144 # license actions have their 268 actions = [] 278 actions.append(AttributeAction(name=name, 288 actions.append(LegacyAction(**legacy_attrs)) 291 actions.append(AttributeAction(name="pkg.description", 294 actions.append(AttributeAction(name="pkg.summary", 297 for act in actions [all...] |
H A D | TarBundle.py | 32 from pkg.actions import *
|
/pkg/src/modules/client/ |
H A D | pkgplan.py | 35 import pkg.actions namespace 36 import pkg.actions.directory as directory namespace 51 set of actions required to take the Image from the origin FMRI to the 68 "actions", 82 # have had their actions evaluated and merged, and when action 109 "src": pkg.actions.generic.NSG, 110 "dest": pkg.actions.generic.NSG, 113 "actions": pkg.manifest.ManifestDifference, 129 self.actions = manifest.ManifestDifference([], [], []) 200 for src, dest in itertools.chain(*self.actions) [all...] |
H A D | imageplan.py | 51 import pkg.actions namespace 52 import pkg.actions.driver as driver namespace 81 and building lists of removal, install and update actions 99 # use during installation). This is used by the pkg.actions 388 # We only want to exclude all actions in the old image that 406 # Only allows actions in new image that cannot be dehydrated 798 # If any dependency actions are tagged with one 1393 # actions lists as we're doing checking with installed 1394 # actions earlier here. 1456 # all matching actions [all...] |
H A D | actuator.py | 28 import pkg.actions namespace 40 on live images when those actions are updated, installed 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)],
|
/pkg/src/tests/perf/ |
H A D | actionbench.py | 34 import pkg.actions as actions namespace 44 setup1 = "import pkg.actions as actions" namespace 45 str1 = 'action = actions.fromstr("file 58371e22b5e75ec66602b966edf29bcce7038db5 elfarch=i386 elfbits=32 elfhash=cd12b081ddaef993fd0276dd04d653222d25fa77 group=bin mode=0755 owner=root path=usr/lib/libzonecfg.so.1 pkg.size=178072")' 52 print("{0:>20f} {1:>8d} actions/sec".format(t, 58 setup2 = """import pkg.actions as actions 59 a1 = actions.fromstr("file 1234 group=bin mode=0755 owner=root path=usr/lib/libzonecfg.so.1") 60 a2 = actions [all...] |
/pkg/src/modules/actions/ |
H A D | attribute.py | 35 import pkg.actions namespace 64 raise pkg.actions.InvalidActionError(str(self), 176 raise pkg.actions.InvalidActionAttributesError(
|
H A D | link.py | 38 import pkg.actions namespace 146 raise pkg.actions.InvalidActionAttributesError( 193 raise pkg.actions.InvalidActionAttributesError(self,
|
H A D | group.py | 41 import pkg.actions namespace 140 raise pkg.actions.ActionRetry(self) 188 # Ignore "user-list", as it is only modified by user actions 237 """Arrange for group actions to be installed in gid order. This 238 will only hold true for actions installed at one time, but that's
|
H A D | generic.py | 45 import pkg.actions namespace 54 # Directories must precede all filesystem object actions; hardlinks must follow 55 # all filesystem object actions (except links). Note that user and group 56 # actions precede file actions (so that the system permits chown'ing them to 81 use as an attribute value for actions in string form.""" 136 return pkg.actions.fromstr(state) 159 # 'globally_identical' is True if all actions representing a single 165 # 'namespace_group' is a string whose value is shared by actions which 180 # Most types of actions d [all...] |
/pkg/src/modules/ |
H A D | manifest.py | 42 import pkg.actions as actions namespace 52 from pkg.actions.attribute import AttributeAction 53 from pkg.actions.directory import DirectoryAction 92 [ ( actions.generic.NSG, actions.generic.NSG ) ], 93 [ ( actions.generic.NSG, actions.generic.NSG ) ], 94 [ ( actions.generic.NSG, actions [all...] |
H A D | api_common.py | 205 def _get_pkg_cat_data(cat, info_needed, actions=None, 225 if actions is None: 226 actions = cat.get_entry_actions(pfmri, cat_data, 229 for a in actions:
|
H A D | mogrify.py | 34 import pkg.actions namespace 39 to process actions.""" 52 attrdict = pkg.actions.attrsfromstr(" ".join([a for a in matching if "=" in a])) 321 return (pkg.actions.fromstr(newmsg), action) 322 except (pkg.actions.MalformedActionError, 323 pkg.actions.UnknownActionError, 324 pkg.actions.InvalidActionError) as e: 464 class PkgAction(pkg.actions.generic.Action): 542 # Any newly-created actions need to have the transforms applied, too. 750 act = pkg.actions [all...] |
/pkg/src/tests/api/ |
H A D | t_catalog.py | 41 import pkg.actions namespace 227 for f, actions in nc.actions([]): 232 raise RuntimeError("actions() did not raise expected " 240 # This case should only return the dependency-related actions. 241 def validate_dep(f, actions): 243 for a in actions: 245 pkg.actions.generic.Action)) 251 # No actions should be returned for this case, 264 for f, actions i [all...] |
H A D | t_manifest.py | 35 import pkg.actions as actions namespace 246 pkg.actions.file.FileAction) 249 pkg.actions.directory.DirectoryAction) 351 they're identical actions, but /usr should show up three 366 for kv, actions in self.m1.duplicates(): 368 for a in actions: 435 """Test that when a factored manifest generates actions by type 507 # Now rewrite the dircache so that it contains actions with
|
H A D | t_misc.py | 42 import pkg.actions as action 43 from pkg.actions.generic import Action
|
/pkg/src/modules/lint/ |
H A D | base.py | 131 def conflicting_variants(self, actions, pkg_vars): 132 """Given a set of actions, determine that none of the actions 136 actions involved. 141 action_list = list(actions) 144 # determining what actions have conflicting variants 165 def conflicting_dep_actions(self, actions, pkg_vars, compared): 166 """Given a set of depend actions, determine that if any of the 167 two actions are conflicting. 170 actions involve [all...] |
H A D | pkglint_manifest.py | 120 set or signature actions 141 # the loggers are no longer concerned about actions 150 # over all actions, we may lose the action that could 164 _("obsolete package {0} contains actions other than " 165 "set or signature actions").format(manifest.fmri), 173 _("obsolete package {0} contains actions other than " 174 "set or signature actions").format(manifest.fmri), 206 signature and depend actions. 235 engine.error(_("renamed package {0} contains actions " 236 "other than set, depend or signature actions") [all...] |
H A D | pkglint_action.py | 34 from pkg.actions import ActionError 35 from pkg.actions.file import FileAction 43 """A class to check duplicate actions/attributes.""" 51 # given fmri delivering multiple copies of actions that install 63 self.description = _("Checks for duplicate IPS actions.") 113 actions of a given type atype, in the given 239 """Checks for duplicate paths on non-ref-counted actions.""" 298 """Checks that for duplicated reference-counted actions, 396 "Duplicated reference counted actions should have the same attrs.") 403 across actions/manifest [all...] |
/pkg/src/ |
H A D | pkgdep.py | 38 import pkg.actions as actions namespace 179 except (actions.MalformedActionError, actions.UnknownActionError) as e: 198 msg(actions.attribute.AttributeAction(**{key: value})) 337 except (actions.MalformedActionError, actions.UnknownActionError) as e: 385 act = actions.fromstr(l.rstrip()) 388 except actions.ActionError:
|
H A D | sign.py | 47 import pkg.actions as actions namespace 209 s, h = actions.signature.SignatureAction.decompose_sig_alg(sig_alg) 297 a = actions.signature.SignatureAction(cert_path,
|
/pkg/src/util/publish/ |
H A D | pkgfmt.py | 52 # 5) variant & facet tags appear at the end of actions 75 import pkg.actions namespace 79 from pkg.actions.generic import quote_attr_value 80 from pkg.actions.depend import known_types as dep_types 184 act = pkg.actions.fromstr(actstr) 186 # For formatting purposes, treat dependency actions that 190 raise pkg.actions.InvalidActionError(act, 193 except (pkg.actions.MalformedActionError, 194 pkg.actions.UnknownActionError, 195 pkg.actions [all...] |