|
1 | 1 | # -*- coding: utf-8 -*-
|
2 | 2 | """
|
3 | 3 | Copyright (C) 2007-2008 Matthew Perry
|
4 |
| -Copyright (C) 2008-2009 Borys Jurgiel |
| 4 | +Copyright (C) 2008-2010 Borys Jurgiel |
5 | 5 |
|
6 | 6 | /***************************************************************************
|
7 | 7 | * *
|
@@ -83,7 +83,7 @@ def setIface(qgisIface):
|
83 | 83 | officialRepo = ("QGIS Official Repository", "http://pyqgis.org/repo/official","")
|
84 | 84 | contribRepo = ("QGIS Contributed Repository", "http://pyqgis.org/repo/contributed","")
|
85 | 85 | authorRepos = [("Carson Farmer's Repository", "http://www.ftools.ca/cfarmerQgisRepo.xml", "http://www.ftools.ca/cfarmerQgisRepo_0.xx.xml"),
|
86 |
| - ("Borys Jurgiel's Repository", "http://bwj.aster.net.pl/qgis/plugins.xml", "http://bwj.aster.net.pl/qgis-oldapi/plugins.xml"), |
| 86 | + # depreciated: ("Borys Jurgiel's Repository", "http://bwj.aster.net.pl/qgis/plugins.xml", "http://bwj.aster.net.pl/qgis-oldapi/plugins.xml"), |
87 | 87 | ("Faunalia Repository", "http://www.faunalia.it/qgis/plugins.xml", "http://faunalia.it/qgis/plugins.xml"),
|
88 | 88 | ("Martin Dobias' Sandbox", "http://mapserver.sk/~wonder/qgis/plugins-sandbox.xml", ""),
|
89 | 89 | ("Aaron Racicot's Repository", "http://qgisplugins.z-pulley.com", ""),
|
@@ -456,7 +456,8 @@ def xmlDownloaded(self,nr,state):
|
456 | 456 | qgisMaximumVersion = pluginNodes.item(i).firstChildElement("qgis_maximum_version").text().simplified()
|
457 | 457 | if not qgisMaximumVersion: qgisMaximumVersion = "2"
|
458 | 458 | #if compatible, add the plugin to the list
|
459 |
| - if compareVersions(QGIS_VER, qgisMinimumVersion) < 2 and compareVersions(qgisMaximumVersion, QGIS_VER) < 2: |
| 459 | + if not pluginNodes.item(i).firstChildElement("disabled").text().simplified().toUpper() in ["TRUE","YES"]: |
| 460 | + if compareVersions(QGIS_VER, qgisMinimumVersion) < 2 and compareVersions(qgisMaximumVersion, QGIS_VER) < 2: |
460 | 461 | if QGIS_VER[0]==qgisMinimumVersion[0] or name=="plugin_installer" or (qgisMinimumVersion!="0" and qgisMaximumVersion!="2"):
|
461 | 462 | #add the plugin to the cache
|
462 | 463 | plugins.addFromRepository(plugin)
|
|
0 commit comments