Plugin Installer polishing

git-svn-id: http://svn.osgeo.org/qgis/trunk@9822 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
borysiasty 2008-12-16 12:00:23 +00:00
parent 06feba0126
commit ecd1de0dcd
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -304,8 +304,8 @@ class Repositories(QObject):
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 @@ class Repositories(QObject):
"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" : "",