Lines Matching refs:action

46 # Dictionary used to map action names to output format.  Each entry is
47 # indexed by action name, and consists of a list of tuples that map
83 object (RealFileInfo) or an IPS manifest action (ActionInfo).
98 """Return the IPS action name of a FileInfo object.
246 """Return an action-style representation of a FileInfo object.
294 def __init__(self, action):
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):
326 """Indicates whether the specified IPS action time is
329 return action in frozenset(("file", "dir", "link", "hardlink"))
560 could not be parsed, rather than what action error we hit.
576 given action.
602 for action in mfest.gen_actions():
603 if "path" not in action.attrs or \
604 not ActionInfo.supported(action.name):
608 # The dir action is currently fully specified, in that it
625 if getattr(action, "hash", "NOHASH") != "NOHASH":
626 path = action.hash
628 path = action.attrs["path"]
640 # As with the manifest itself, if an action has specified
650 if hasattr(action, 'get_variants'):
651 var = action.get_variants()
653 var = action.get_variant_template()
657 self[path] = ActionInfo(action)