Lines Matching refs:action
292 def __init__(self, action): argument
299 self.path = action.attrs["path"]
301 if action.name == "file":
302 self.owner = action.attrs["owner"]
303 self.group = action.attrs["group"]
304 self.mode = action.attrs["mode"]
305 self.hash = action.hash
306 if "preserve" in action.attrs:
308 elif action.name == "link":
309 target = action.attrs["target"]
311 self.mediator = action.attrs.get("mediator")
312 elif action.name == "dir":
313 self.owner = action.attrs["owner"]
314 self.group = action.attrs["group"]
315 self.mode = action.attrs["mode"]
317 elif action.name == "hardlink":
318 target = os.path.normpath(action.get_target_path())
323 def supported(action): argument
327 return action in frozenset(("file", "dir", "link", "hardlink"))
600 for action in mfest.gen_actions():
601 if "path" not in action.attrs or \
602 not ActionInfo.supported(action.name):
623 if getattr(action, "hash", "NOHASH") != "NOHASH":
624 path = action.hash
626 path = action.attrs["path"]
648 if hasattr(action, 'get_variants'):
649 var = action.get_variants()
651 var = action.get_variant_template()
655 self[path] = ActionInfo(action)