Lines Matching refs:action
294 def __init__(self, action): argument
301 self.path = action.attrs["path"]
303 if action.name == "file":
304 self.owner = action.attrs["owner"]
305 self.group = action.attrs["group"]
306 self.mode = action.attrs["mode"]
307 self.hash = action.hash
308 if "preserve" in action.attrs:
310 elif action.name == "link":
311 target = action.attrs["target"]
313 self.mediator = action.attrs.get("mediator")
314 elif action.name == "dir":
315 self.owner = action.attrs["owner"]
316 self.group = action.attrs["group"]
317 self.mode = action.attrs["mode"]
319 elif action.name == "hardlink":
320 target = os.path.normpath(action.get_target_path())
325 def supported(action): argument
329 return action in frozenset(("file", "dir", "link", "hardlink"))
602 for action in mfest.gen_actions():
603 if "path" not in action.attrs or \
604 not ActionInfo.supported(action.name):
625 if getattr(action, "hash", "NOHASH") != "NOHASH":
626 path = action.hash
628 path = action.attrs["path"]
650 if hasattr(action, 'get_variants'):
651 var = action.get_variants()
653 var = action.get_variant_template()
657 self[path] = ActionInfo(action)