Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Plugin Installer polishing
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@9821 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Dec 16, 2008
1 parent 22dca2d commit 9bd9306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/plugins/plugin_installer/__init__.py
Expand Up @@ -14,7 +14,7 @@ def name():
return "Plugin Installer"

def version():
return "Version 0.9.5"
return "Version 0.9.6"

def description():
return "Downloads and installs QGIS python plugins"
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/plugin_installer/installer_data.py
Expand Up @@ -304,8 +304,8 @@ def xmlDownloaded(self,nr,state):
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] = {
Expand All @@ -316,7 +316,7 @@ def xmlDownloaded(self,nr,state):
"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" : "",
Expand Down

0 comments on commit 9bd9306

Please sign in to comment.