コード例 #1
0
ファイル: Updater.py プロジェクト: wallydz/BitBlinder
 def update_request_done(self, data, httpDownloadInstance=None):
   """Handle the response from the web server telling us about the current version of the program.
   Return True if there is a new version, False otherwise.
   data=web server response
   httpDownloadInstance=HTTP request object that got the response"""
   data = data.replace("\r", "")
   data = data.split("\n\n")
   version = data[0]
   if Basic.compare_versions_strings(version, Globals.VERSION):
     self.download_update(data)
     return True
   else:
     log_msg("Your version is up to date.")
   return False