def module_run(self):
        """Configure device: check prerequisites and install missing tools."""
        # Check Prerequisites
        self._check_prerequisites()

        # Installing coreutils
        self._configure_tool('COREUTILS')

        # Refresh package list
        self.__apt_update()
        self._refresh_package_list()
        self._parse_cydia_list()

        # Get list of tools to install
        if self.options['all']:
            to_install = [k.upper() for k, v in self.options.iteritems()]
        else:
            to_install = [k.upper() for k, v in self.options.iteritems() if v]
        if 'ALL' in to_install:
            to_install.remove('ALL')
        self.printer.info('The following tools are going to be installed: {}'.format(to_install))

        # Configure tools
        if choose_boolean('Do you want to continue?'):
            map(self._configure_tool, to_install)
    def module_run(self):
        """Configure device: check prerequisites and install missing tools."""
        # Check Prerequisites
        self._check_prerequisites()

        # Installing coreutils
        self._configure_tool('COREUTILS')

        # Refresh package list
        self.__apt_update()
        self._refresh_package_list()
        self._parse_cydia_list()

        # Get list of tools to install
        if self.options['all']:
            to_install = [k.upper() for k, v in self.options.iteritems()]
        else:
            to_install = [k.upper() for k, v in self.options.iteritems() if v]
        if 'ALL' in to_install:
            to_install.remove('ALL')
        self.printer.info('The following tools are going to be installed: {}'.format(to_install))

        # Configure tools
        if choose_boolean('Do you want to continue?'):
            map(self._configure_tool, to_install)
Exemple #3
0
 def __bypass_wizard(self):
     bypass = False
     if self.device.remote_op.dir_exist(self.project_folder):
         msg = "A Tweak with the same PROJECT_NAME ({}) already exists. Do you want to delete it and start from scratch?".format(self.options['project_name'])
         clean = choose_boolean(msg)
         if clean:
             self.device.remote_op.dir_delete(self.project_folder)
         else:
             bypass = True
     return bypass
 def __bypass_wizard(self):
     bypass = False
     if self.device.remote_op.dir_exist(self.project_folder):
         msg = "A Tweak with the same PROJECT_NAME ({}) already exists. Do you want to delete it and start from scratch?".format(self.options['project_name'])
         clean = choose_boolean(msg)
         if clean:
             self.device.remote_op.dir_delete(self.project_folder)
         else:
             bypass = True
     return bypass