@@ -70,6 +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" ,"" )
7374contribRepo = ("QGIS Contributed Repository" , "http://pyqgis.org/repo/contributed" ,"" )
7475authorRepos = [("Aaron Racicot's Repository" , "http://qgisplugins.z-pulley.com" , "" ),
7576 ("Barry Rowlingson's Repository" , "http://www.maths.lancs.ac.uk/~rowlings/Qgis/Plugins/plugins.xml" , "" ),
@@ -83,7 +84,8 @@ def setIface(qgisIface):
8384 ("Martin Dobias' Sandbox" , "http://mapserver.sk/~wonder/qgis/plugins-sandbox.xml" , "" ),
8485 ("Marco Hugentobler's Repository" ,"http://karlinapp.ethz.ch/python_plugins/python_plugins.xml" , "" ),
8586 ("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+ ]
8789
8890
8991
@@ -199,6 +201,9 @@ def addKnownRepos(self):
199201 if presentURLs .count (officialRepo [1 ]) == 0 :
200202 settings .setValue (officialRepo [0 ]+ "/url" , QVariant (officialRepo [1 ]))
201203 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 ))
202207 if presentURLs .count (contribRepo [1 ]) == 0 :
203208 settings .setValue (contribRepo [0 ]+ "/url" , QVariant (contribRepo [1 ]))
204209 settings .setValue (contribRepo [0 ]+ "/enabled" , QVariant (True ))
@@ -323,6 +328,7 @@ def load(self):
323328 settings .beginGroup (reposGroup )
324329 # first, update repositories in QSettings if needed
325330 officialRepoPresent = False
331+ officialRepo2Present = False
326332 for key in settings .childGroups ():
327333 url = settings .value (key + "/url" , QVariant ()).toString ()
328334 if url == contribRepo [1 ]:
@@ -331,11 +337,16 @@ def load(self):
331337 settings .setValue (key + "/valid" , QVariant (True )) # unlock any other repo
332338 if url == officialRepo [1 ]:
333339 officialRepoPresent = True
340+ if url == officialRepo2 [1 ]:
341+ officialRepoPresent = True
334342 for authorRepo in authorRepos :
335343 if url == authorRepo [2 ]:
336344 settings .setValue (key + "/url" , QVariant (authorRepo [1 ])) # correct a depreciated url
337345 if not officialRepoPresent :
338346 settings .setValue (officialRepo [0 ]+ "/url" , QVariant (officialRepo [1 ]))
347+ if not officialRepo2Present :
348+ settings .setValue (officialRepo2 [0 ]+ "/url" , QVariant (officialRepo2 [1 ]))
349+
339350
340351 for key in settings .childGroups ():
341352 self .mRepositories [key ] = {}
0 commit comments