Lines Matching refs:action

42         name = "userland.action"
107 """Updates a dictionary of { attr: [(fmri, action), ..]}
119 for action in mfg:
120 if atype and action.name != atype:
122 if attr not in action.attrs:
125 variants = action.get_variant_template()
130 action.attrs[k] = list(v)
132 action.attrs[k] = v
134 p = action.attrs[attr]
135 dic.setdefault(p, []).append((mf.fmri, action))
148 _("Seeding reference action path dictionaries."))
162 _("Seeding lint action path dictionaries."))
171 _("Seeding local action path dictionaries."))
197 """Builds a dictionary of fmri:action entries"""
199 for (pfmri, action) in arr:
201 dic[pfmri].append(action)
203 dic[pfmri] = [action]
222 for action in targ_dic[pfmri]:
223 l.append((pfmri, action))
305 # to a directory that has no action because it uses
384 def file_action(self, action, manifest, engine, pkglint_id="001"):
387 if action.name not in ["file"]:
390 inspath=action.attrs["path"]
392 path = action.hash
397 if "mode" in action.attrs:
398 mode = action.attrs["mode"]
400 if (int(mode, 8) & 0222) != 0 and "preserve" not in action.attrs:
405 elif "preserve" in action.attrs:
406 if "mode" in action.attrs:
407 mode = action.attrs["mode"]
410 _("%(path)s has a preserve action, but is not writable (%(mode)s)") % {"path": path, "mode": mode},
414 _("%(path)s has a preserve action, but no mode") % {"path": path, "mode": mode},
444 def link_resolves(self, action, manifest, engine, pkglint_id="002"):
447 if action.name not in ["link", "hardlink"]:
450 path = action.attrs["path"]
451 target = action.attrs["target"]
464 # be a link to a directory that has no action because it uses
474 (action.name, path, target),
479 def init_script(self, action, manifest, engine, pkglint_id="003"):
482 if action.name not in ["file", "dir", "link", "hardlink"]:
485 path = action.attrs["path"]
508 for action in manifest.gen_actions_by_type("file"):
515 for action in manifest.gen_actions_by_type("license"):
520 engine.error( _("missing license action"),
539 for action in manifest.gen_actions_by_type("depend"):
542 for f in action.attrlist("fmri")
545 if action.attrs["type"] in ("require", "require-any"):
546 cffi_require = action
547 elif action.attrs["type"] == "incorporate":
548 cffi_incorp = action