[QGIS Commit] r9849 - branches/Version-1_0/python/plugins/plugin_installer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Dec 18 10:59:28 EST 2008


Author: borysiasty
Date: 2008-12-18 10:59:28 -0500 (Thu, 18 Dec 2008)
New Revision: 9849

Modified:
   branches/Version-1_0/python/plugins/plugin_installer/__init__.py
   branches/Version-1_0/python/plugins/plugin_installer/installer_data.py
Log:
Plugin Installer update - switch to the new official repository


Modified: branches/Version-1_0/python/plugins/plugin_installer/__init__.py
===================================================================
--- branches/Version-1_0/python/plugins/plugin_installer/__init__.py	2008-12-18 15:58:38 UTC (rev 9848)
+++ branches/Version-1_0/python/plugins/plugin_installer/__init__.py	2008-12-18 15:59:28 UTC (rev 9849)
@@ -14,7 +14,7 @@
   return "Plugin Installer"
 
 def version():
-  return "Version 0.9.6"
+  return "Version 0.9.7"
 
 def description():
   return "Downloads and installs QGIS python plugins"

Modified: branches/Version-1_0/python/plugins/plugin_installer/installer_data.py
===================================================================
--- branches/Version-1_0/python/plugins/plugin_installer/installer_data.py	2008-12-18 15:58:38 UTC (rev 9848)
+++ branches/Version-1_0/python/plugins/plugin_installer/installer_data.py	2008-12-18 15:59:28 UTC (rev 9849)
@@ -74,7 +74,7 @@
 
 
 # knownRepos: (name, url for QGIS 0.x, url for QGIS 1.x, possible depreciated url, another possible depreciated url)
-knownRepos = [("Official QGIS Repository","http://spatialserver.net/cgi-bin/pyqgis_plugin.rb","http://spatialserver.net/cgi-bin/pyqgis_plugin.rb","",""),
+knownRepos = [("Official QGIS Repository","http://spatialserver.net/cgi-bin/pyqgis_plugin.rb","http://pyqgis.org/repo/official","",""),
               ("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"),
               ("Borys Jurgiel's Repository","http://bwj.aster.net.pl/qgis-oldapi/plugins.xml","http://bwj.aster.net.pl/qgis/plugins.xml","",""),
               ("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 @@
           if not qgisMaximumVersion: qgisMaximumVersion = "2"
           #if compatible, add the plugin to the list
           if compareVersions(QGIS_VER, qgisMinimumVersion) < 2 and compareVersions(qgisMaximumVersion, QGIS_VER) < 2:
-            plugins.addPlugin(plugin)
+            if QGIS_VER[0]=="0" or qgisMinimumVersion[0]=="1" or name=="plugin_installer":
+              plugins.addPlugin(plugin)
         plugins.workarounds()
         self.mRepositories[reposName]["state"] = 2
       else:



More information about the QGIS-commit mailing list