Skip to content

Commit 84a4524

Browse files
author
borysiasty
committed
plugin installer: do not consider an empty repo as invalid
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15832 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7b99aba commit 84a4524

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

python/plugins/plugin_installer/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def name():
1515
return "Plugin Installer"
1616

1717
def version():
18-
return "Version 1.2"
18+
return "Version 1.2.1"
1919

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

python/plugins/plugin_installer/installer_data.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,8 @@ def xmlDownloaded(self,nr,state):
436436
if QGIS_VER[0]==qgisMinimumVersion[0] or (qgisMinimumVersion!="0" and qgisMaximumVersion!="2"): # to be deleted
437437
#add the plugin to the cache
438438
plugins.addFromRepository(plugin)
439-
self.mRepositories[reposName]["state"] = 2
440-
else:
441-
#print "Repository parsing error"
442-
self.mRepositories[reposName]["state"] = 3
443-
self.mRepositories[reposName]["error"] = QCoreApplication.translate("QgsPluginInstaller","Couldn't parse output from the repository")
439+
# set state=2, even if the repo is empty
440+
self.mRepositories[reposName]["state"] = 2
444441

445442
self.emit(SIGNAL("repositoryFetched(QString)"), reposName )
446443

0 commit comments

Comments
 (0)