Skip to content

Commit 22a7b92

Browse files
committedNov 3, 2017
[Plugin installer] Fix broken warning about outdated plugin updates in the user directory masking a newer core version
1 parent 92ce3be commit 22a7b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/pyplugin_installer/installer_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,10 +716,10 @@ def getAllInstalled(self, testLoad=True):
716716
# failedToLoad = settings.value("/PythonPlugins/watchDog/" + key) is not None
717717
testLoadThis = testLoad and key not in qgis.utils.plugins
718718
plugin = self.getInstalledPlugin(key, path=path, readOnly=readOnly, testLoad=testLoadThis)
719-
self.localCache[key] = plugin
720719
if key in self.localCache.keys() and compareVersions(self.localCache[key]["version_installed"], plugin["version_installed"]) == 1:
721720
# An obsolete plugin in the "user" location is masking a newer one in the "system" location!
722721
self.obsoletePlugins += [key]
722+
self.localCache[key] = plugin
723723
except:
724724
# it's not necessary to stop if one of the dirs is inaccessible
725725
pass

0 commit comments

Comments
 (0)
Please sign in to comment.