예제 #1
0
    def do_check_version(self, args):
        """Check online for a newer release

Usage:
  check_version

Options:
  -h --help     Show this help."""
        print("Querying github API...")
        ver = check_version(True)
        if ver["error"]:
            print(ver["error"])
        elif ver["up_to_date"]:
            print("You're running the latest version")
        else:
            print("A newer version is available!")
            print("You can download it using this link:")
            print(ver["download_url"])
예제 #2
0
    def do_check_version(self, args):
        """Check online for a newer release

Usage:
  check_version

Options:
  -h --help     Show this help."""
        print("Querying github API...")
        ver = check_version(True)
        if ver["error"]:
            print(ver["error"])
        elif ver["up_to_date"]:
            print("You're running the latest version")
        else:
            print("A newer version is available!")
            print("You can download it using this link:")
            print(ver["download_url"])
예제 #3
0
 def worker(self, queue):
     ThreadedBase.worker(self, queue)
     res = check_version()
     res["done"] = True
     queue.put(res)
예제 #4
0
 def worker(self, queue):
     ThreadedBase.worker(self, queue)
     res = check_version()
     res["done"] = True
     queue.put(res)