Exemplo n.º 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"])
Exemplo n.º 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"])
Exemplo n.º 3
0
 def worker(self, queue):
     ThreadedBase.worker(self, queue)
     res = check_version()
     res["done"] = True
     queue.put(res)
Exemplo n.º 4
0
 def worker(self, queue):
     ThreadedBase.worker(self, queue)
     res = check_version()
     res["done"] = True
     queue.put(res)