@@ -70,7 +70,7 @@ def setIface(qgisIface):
7070
7171# Repositories: (name, url, possible depreciated url)
7272officialRepo = ("QGIS Official Repository" , "http://pyqgis.org/repo/official" ,"" )
73- officialRepo2 = ("QGIS Official Repository 2" , "http://plugins.qgis.org/plugins" ,"" )
73+ officialRepo2 = ("QGIS Official Repository 2" , "http://plugins.qgis.org/plugins/plugins.xml " ,"http://plugins.qgis.org/plugins " )
7474contribRepo = ("QGIS Contributed Repository" , "http://pyqgis.org/repo/contributed" ,"" )
7575authorRepos = [("Aaron Racicot's Repository" , "http://qgisplugins.z-pulley.com" , "" ),
7676 ("Barry Rowlingson's Repository" , "http://www.maths.lancs.ac.uk/~rowlings/Qgis/Plugins/plugins.xml" , "" ),
@@ -338,7 +338,13 @@ def load(self):
338338 if url == officialRepo [1 ]:
339339 officialRepoPresent = True
340340 if url == officialRepo2 [1 ]:
341+ officialRepoPresent2 = True
342+ if url == officialRepo [2 ]:
343+ settings .setValue (key + "/url" , QVariant (officialRepo [1 ])) # correct a depreciated url
341344 officialRepoPresent = True
345+ if url == officialRepo2 [2 ]:
346+ settings .setValue (key + "/url" , QVariant (officialRepo2 [1 ])) # correct a depreciated url
347+ officialRepoPresent2 = True
342348 for authorRepo in authorRepos :
343349 if url == authorRepo [2 ]:
344350 settings .setValue (key + "/url" , QVariant (authorRepo [1 ])) # correct a depreciated url
@@ -658,7 +664,7 @@ def rebuild(self):
658664 # check if the plugin is allowed and if there isn't any better one added already.
659665 if (allowed != 1 or plugin ["repository" ] == officialRepo [0 ]) and (allowed == 3 or not plugin ["experimental" ]) \
660666 and not (self .mPlugins .has_key (key ) and self .mPlugins [key ]["version_avail" ] and compareVersions (self .mPlugins [key ]["version_avail" ], plugin ["version_avail" ]) < 2 ):
661- # The mPlugins doct contains now locally installed plugins.
667+ # The mPlugins dict contains now locally installed plugins.
662668 # Now, add the available one if not present yet or update it if present already.
663669 if not self .mPlugins .has_key (key ):
664670 self .mPlugins [key ] = plugin # just add a new plugin
0 commit comments