(self)
return actions[self.display_status]
Return the main action.
Return the main action.
Return the main action .
def main_action(self):
        """Return the main action."""
        actions = {
            "new": "INSTALL",
            "default": "INSTALL",
            "installed": "REINSTALL",
            "pending-restart": "REINSTALL",
            "pending-upgrade": "UPGRADE",
        }
        return actions[self.display_status]
def main_action ( self ) : actions = { "new" : "INSTALL" , "default" : "INSTALL" , "installed" : "REINSTALL" , "pending-restart" : "REINSTALL" , "pending-upgrade" : "UPGRADE" , } return actions [ self . display_status ]