@@ -70,6 +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
74
contribRepo = ("QGIS Contributed Repository" , "http://pyqgis.org/repo/contributed" ,"" )
74
75
authorRepos = [("Aaron Racicot's Repository" , "http://qgisplugins.z-pulley.com" , "" ),
75
76
("Barry Rowlingson's Repository" , "http://www.maths.lancs.ac.uk/~rowlings/Qgis/Plugins/plugins.xml" , "" ),
@@ -83,7 +84,8 @@ def setIface(qgisIface):
83
84
("Martin Dobias' Sandbox" , "http://mapserver.sk/~wonder/qgis/plugins-sandbox.xml" , "" ),
84
85
("Marco Hugentobler's Repository" ,"http://karlinapp.ethz.ch/python_plugins/python_plugins.xml" , "" ),
85
86
("Sourcepole Repository" , "http://build.sourcepole.ch/qgis/plugins.xml" , "" ),
86
- ("Volkan Kepoglu's Repository" ,"http://ggit.metu.edu.tr/~volkan/plugins.xml" , "" )]
87
+ #("Volkan Kepoglu's Repository","http://ggit.metu.edu.tr/~volkan/plugins.xml", "")
88
+ ]
87
89
88
90
89
91
@@ -199,6 +201,9 @@ def addKnownRepos(self):
199
201
if presentURLs .count (officialRepo [1 ]) == 0 :
200
202
settings .setValue (officialRepo [0 ]+ "/url" , QVariant (officialRepo [1 ]))
201
203
settings .setValue (officialRepo [0 ]+ "/enabled" , QVariant (True ))
204
+ if presentURLs .count (officialRepo2 [1 ]) == 0 :
205
+ settings .setValue (officialRepo2 [0 ]+ "/url" , QVariant (officialRepo2 [1 ]))
206
+ settings .setValue (officialRepo2 [0 ]+ "/enabled" , QVariant (True ))
202
207
if presentURLs .count (contribRepo [1 ]) == 0 :
203
208
settings .setValue (contribRepo [0 ]+ "/url" , QVariant (contribRepo [1 ]))
204
209
settings .setValue (contribRepo [0 ]+ "/enabled" , QVariant (True ))
@@ -323,6 +328,7 @@ def load(self):
323
328
settings .beginGroup (reposGroup )
324
329
# first, update repositories in QSettings if needed
325
330
officialRepoPresent = False
331
+ officialRepo2Present = False
326
332
for key in settings .childGroups ():
327
333
url = settings .value (key + "/url" , QVariant ()).toString ()
328
334
if url == contribRepo [1 ]:
@@ -331,11 +337,16 @@ def load(self):
331
337
settings .setValue (key + "/valid" , QVariant (True )) # unlock any other repo
332
338
if url == officialRepo [1 ]:
333
339
officialRepoPresent = True
340
+ if url == officialRepo2 [1 ]:
341
+ officialRepoPresent = True
334
342
for authorRepo in authorRepos :
335
343
if url == authorRepo [2 ]:
336
344
settings .setValue (key + "/url" , QVariant (authorRepo [1 ])) # correct a depreciated url
337
345
if not officialRepoPresent :
338
346
settings .setValue (officialRepo [0 ]+ "/url" , QVariant (officialRepo [1 ]))
347
+ if not officialRepo2Present :
348
+ settings .setValue (officialRepo2 [0 ]+ "/url" , QVariant (officialRepo2 [1 ]))
349
+
339
350
340
351
for key in settings .childGroups ():
341
352
self .mRepositories [key ] = {}
0 commit comments