def store_values(self): # remove timer self.remove_timer = True logging.info(_("We have Internet connection.")) logging.info(_("We're connected to a power source.")) logging.info(_("We have enough disk space.")) # Enable forward button self.forward_button.set_sensitive(True) if not self.testing: ## Launch rankmirrors script to determine the 5 fastest mirrors self.thread = AutoRankmirrorsThread() self.thread.start() return True
def store_values(self): """ Continue """ # Remove timer self.remove_timer = True has_internet = misc.has_connection() if has_internet: logging.info(_("We have Internet connection.")) logging.info(_("We're connected to a power source.")) logging.info(_("We have enough disk space.")) # Enable forward button self.forward_button.set_sensitive(True) if not self.testing and has_internet: # Launch reflector script to determine the 10 fastest mirrors self.thread = AutoRankmirrorsThread() self.thread.start() return True