@@ -70,7 +70,7 @@ def setIface(qgisIface):
70
70
71
71
# Repositories: (name, url, possible depreciated url)
72
72
officialRepo = ("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 " )
74
74
contribRepo = ("QGIS Contributed Repository" , "http://pyqgis.org/repo/contributed" ,"" )
75
75
authorRepos = [("Aaron Racicot's Repository" , "http://qgisplugins.z-pulley.com" , "" ),
76
76
("Barry Rowlingson's Repository" , "http://www.maths.lancs.ac.uk/~rowlings/Qgis/Plugins/plugins.xml" , "" ),
@@ -338,7 +338,13 @@ def load(self):
338
338
if url == officialRepo [1 ]:
339
339
officialRepoPresent = True
340
340
if url == officialRepo2 [1 ]:
341
+ officialRepoPresent2 = True
342
+ if url == officialRepo [2 ]:
343
+ settings .setValue (key + "/url" , QVariant (officialRepo [1 ])) # correct a depreciated url
341
344
officialRepoPresent = True
345
+ if url == officialRepo2 [2 ]:
346
+ settings .setValue (key + "/url" , QVariant (officialRepo2 [1 ])) # correct a depreciated url
347
+ officialRepoPresent2 = True
342
348
for authorRepo in authorRepos :
343
349
if url == authorRepo [2 ]:
344
350
settings .setValue (key + "/url" , QVariant (authorRepo [1 ])) # correct a depreciated url
@@ -658,7 +664,7 @@ def rebuild(self):
658
664
# check if the plugin is allowed and if there isn't any better one added already.
659
665
if (allowed != 1 or plugin ["repository" ] == officialRepo [0 ]) and (allowed == 3 or not plugin ["experimental" ]) \
660
666
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.
662
668
# Now, add the available one if not present yet or update it if present already.
663
669
if not self .mPlugins .has_key (key ):
664
670
self .mPlugins [key ] = plugin # just add a new plugin
0 commit comments