Lines Matching refs:action

44 # Dictionary used to map action names to output format.  Each entry is
45 # indexed by action name, and consists of a list of tuples that map
81 object (RealFileInfo) or an IPS manifest action (ActionInfo).
96 """Return the IPS action name of a FileInfo object.
244 """Return an action-style representation of a FileInfo object.
292 def __init__(self, action):
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):
324 """Indicates whether the specified IPS action time is
327 return action in frozenset(("file", "dir", "link", "hardlink"))
558 could not be parsed, rather than what action error we hit.
574 given action.
600 for action in mfest.gen_actions():
601 if "path" not in action.attrs or \
602 not ActionInfo.supported(action.name):
606 # The dir action is currently fully specified, in that it
623 if getattr(action, "hash", "NOHASH") != "NOHASH":
624 path = action.hash
626 path = action.attrs["path"]
638 # As with the manifest itself, if an action has specified
648 if hasattr(action, 'get_variants'):
649 var = action.get_variants()
651 var = action.get_variant_template()
655 self[path] = ActionInfo(action)