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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Dec 16 06:59:30 EST 2008


Author: borysiasty
Date: 2008-12-16 06:59:30 -0500 (Tue, 16 Dec 2008)
New Revision: 9821

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 polishing

Modified: branches/Version-1_0/python/plugins/plugin_installer/__init__.py
===================================================================
--- branches/Version-1_0/python/plugins/plugin_installer/__init__.py	2008-12-16 11:16:38 UTC (rev 9820)
+++ branches/Version-1_0/python/plugins/plugin_installer/__init__.py	2008-12-16 11:59:30 UTC (rev 9821)
@@ -14,7 +14,7 @@
   return "Plugin Installer"
 
 def version():
-  return "Version 0.9.5"
+  return "Version 0.9.6"
 
 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-16 11:16:38 UTC (rev 9820)
+++ branches/Version-1_0/python/plugins/plugin_installer/installer_data.py	2008-12-16 11:59:30 UTC (rev 9821)
@@ -304,8 +304,8 @@
       pluginNodes = reposXML.elementsByTagName("pyqgis_plugin")
       if pluginNodes.size():
         for i in range(pluginNodes.size()):
-          name = QFileInfo(pluginNodes.item(i).firstChildElement("download_url").text().trimmed()).fileName()
-          name.chop(4)
+          fileName = QFileInfo(pluginNodes.item(i).firstChildElement("download_url").text().trimmed()).fileName()
+          name = fileName.section(".", 0, 0)
           name = str(name)
           plugin = {}
           plugin[name] = {
@@ -316,7 +316,7 @@
             "author"        : pluginNodes.item(i).firstChildElement("author_name").text().trimmed(),
             "homepage"      : pluginNodes.item(i).firstChildElement("homepage").text().trimmed(),
             "url"           : pluginNodes.item(i).firstChildElement("download_url").text().trimmed(),
-            "filename"      : pluginNodes.item(i).firstChildElement("file_name").text().trimmed(),
+            "filename"      : fileName,
             "status"        : "not installed",
             "error"         : "",
             "error_details" : "",



More information about the QGIS-commit mailing list