diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:18:18 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:18:18 +0200 |
commit | 832bc8c8e85c075edf559a32400d86183e985728 (patch) | |
tree | 80346180eb02de40c8342055bbd1f22055640d84 /raphodo/newversion.py | |
parent | 049849cac97ff5fa2e2b12503702fe52a115182c (diff) | |
parent | 77dd64c0757c0191b276e65c24ee9874959790c8 (diff) |
Updated version 0.9.1 from 'upstream/0.9.1'
with Debian dir df52fe78cbe3481a4d64083df8ec468669b4bd47
Diffstat (limited to 'raphodo/newversion.py')
-rw-r--r-- | raphodo/newversion.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/raphodo/newversion.py b/raphodo/newversion.py index b448ba6..5f4f05b 100644 --- a/raphodo/newversion.py +++ b/raphodo/newversion.py @@ -99,7 +99,9 @@ class NewVersion(QObject): :return: True if installed via pip, else False """ - command_line = '{} -m pip show --verbose {}'.format(sys.executable, package) + command_line = '{} -m pip show --disable-pip-version-check --verbose {}'.format( + sys.executable, package + ) args = shlex.split(command_line) try: pip_output = subprocess.check_output(args) @@ -122,16 +124,14 @@ class NewVersion(QObject): status_code = r.status_code success = status_code == 200 if not success: - logging.debug("Got error code %d while accessing versions file", self.status_code) - self._reset_values() + logging.debug("Got error code %d while accessing versions file", status_code) self.status_code = r.status_code else: try: self.version = r.json() except: - logging.error("Error accessing versions JSON file", self.status_code) + logging.error("Error %d accessing versions JSON file", status_code) success = False - self._reset_values() self.status_code = r.status_code else: stable = self.version['stable'] |