def _update(self):
    if (self._mode == self.mode_check):
        raise ConanException("Can't update because tools.system.package_manager:mode is '{0}'.Please update packages manually or set 'tools.system.package_manager:mode' to '{1}' in the [conf] section of the profile, or in the command line using '-c tools.system.package_manager:mode={1}'".format(self.mode_check, self.mode_install))
    command = self.update_command.format(sudo=self.sudo_str, tool=self.tool_name)
    return self._conanfile.run(command)
def _update(self):
    if (self._mode == self.mode_check):
        raise ConanException("Can't update because tools.system.package_manager:mode is '{0}'.Please update packages manually or set 'tools.system.package_manager:mode' to '{1}' in the [conf] section of the profile, or in the command line using '-c tools.system.package_manager:mode={1}'".format(self.mode_check, self.mode_install))
    command = self.update_command.format(sudo=self.sudo_str, tool=self.tool_name)
    return self._conanfile.run(command)