Skip to content

Commit e49fd9c

Browse files
author
borysiasty
committed
Plugin Installer update - switch to the new official repository
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9848 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e4efb52 commit e49fd9c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

python/plugins/plugin_installer/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def name():
1414
return "Plugin Installer"
1515

1616
def version():
17-
return "Version 0.9.6"
17+
return "Version 0.9.7"
1818

1919
def description():
2020
return "Downloads and installs QGIS python plugins"

python/plugins/plugin_installer/installer_data.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def setIface(qgisIface):
7474

7575

7676
# knownRepos: (name, url for QGIS 0.x, url for QGIS 1.x, possible depreciated url, another possible depreciated url)
77-
knownRepos = [("Official QGIS Repository","http://spatialserver.net/cgi-bin/pyqgis_plugin.rb","http://spatialserver.net/cgi-bin/pyqgis_plugin.rb","",""),
77+
knownRepos = [("Official QGIS Repository","http://spatialserver.net/cgi-bin/pyqgis_plugin.rb","http://pyqgis.org/repo/official","",""),
7878
("Carson Farmer's Repository","http://www.ftools.ca/cfarmerQgisRepo.xml","http://www.ftools.ca/cfarmerQgisRepo.xml", "http://www.geog.uvic.ca/spar/carson/cfarmerQgisRepo.xml","http://www.ftools.ca/cfarmerQgisRepo_0.xx.xml"),
7979
("Borys Jurgiel's Repository","http://bwj.aster.net.pl/qgis-oldapi/plugins.xml","http://bwj.aster.net.pl/qgis/plugins.xml","",""),
8080
("Faunalia Repository","http://faunalia.it/qgis/plugins.xml","http://faunalia.it/qgis/plugins.xml","http://faunalia.it/qgis/1.x/plugins.xml","")]
@@ -331,7 +331,8 @@ def xmlDownloaded(self,nr,state):
331331
if not qgisMaximumVersion: qgisMaximumVersion = "2"
332332
#if compatible, add the plugin to the list
333333
if compareVersions(QGIS_VER, qgisMinimumVersion) < 2 and compareVersions(qgisMaximumVersion, QGIS_VER) < 2:
334-
plugins.addPlugin(plugin)
334+
if QGIS_VER[0]=="0" or qgisMinimumVersion[0]=="1" or name=="plugin_installer":
335+
plugins.addPlugin(plugin)
335336
plugins.workarounds()
336337
self.mRepositories[reposName]["state"] = 2
337338
else:

0 commit comments

Comments
 (0)