def update(self): """ Check for updates and clone repository """ logger.debug("Updating Faceswap...") self.root.config(cursor="watch") encoding = locale.getpreferredencoding() logger.debug("Encoding: %s", encoding) success = False if self.check_for_updates(encoding): success = self.do_update(encoding) update_deps.main(logger=logger) if success: logger.info("Please restart Faceswap to complete the update.") self.root.config(cursor="")
def update(self): """ Check for updates and clone repository """ logger.debug("Updating Faceswap...") self.root.config(cursor="watch") encoding = locale.getpreferredencoding() logger.debug("Encoding: %s", encoding) success = False if self.check_for_updates(encoding): success = self.do_update(encoding) update_deps.main(logger=logger) if success: logger.info("Please restart Faceswap to complete the update.") logger.info( "NB: You are on release 1.0 of Faceswap, which is unlikely to receive further " "updates. You can upgrade to the latest Faceswap by visiting " "https://faceswap.dev") self.root.config(cursor="")