Skip to content

Commit 0899aa2

Browse files
author
borysiasty
committed
Plugin Installer polishing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9822 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a2a8cf6 commit 0899aa2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.5"
17+
return "Version 0.9.6"
1818

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

python/plugins/plugin_installer/installer_data.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ def xmlDownloaded(self,nr,state):
304304
pluginNodes = reposXML.elementsByTagName("pyqgis_plugin")
305305
if pluginNodes.size():
306306
for i in range(pluginNodes.size()):
307-
name = QFileInfo(pluginNodes.item(i).firstChildElement("download_url").text().trimmed()).fileName()
308-
name.chop(4)
307+
fileName = QFileInfo(pluginNodes.item(i).firstChildElement("download_url").text().trimmed()).fileName()
308+
name = fileName.section(".", 0, 0)
309309
name = str(name)
310310
plugin = {}
311311
plugin[name] = {
@@ -316,7 +316,7 @@ def xmlDownloaded(self,nr,state):
316316
"author" : pluginNodes.item(i).firstChildElement("author_name").text().trimmed(),
317317
"homepage" : pluginNodes.item(i).firstChildElement("homepage").text().trimmed(),
318318
"url" : pluginNodes.item(i).firstChildElement("download_url").text().trimmed(),
319-
"filename" : pluginNodes.item(i).firstChildElement("file_name").text().trimmed(),
319+
"filename" : fileName,
320320
"status" : "not installed",
321321
"error" : "",
322322
"error_details" : "",

0 commit comments

Comments
 (0)