plugin installer: do not consider an empty repo as invalid

git-svn-id: http://svn.osgeo.org/qgis/trunk@15832 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
borysiasty 2011-04-27 14:33:11 +00:00
parent 0a26980c1f
commit 25d18c2caa
2 changed files with 3 additions and 6 deletions

View File

@ -15,7 +15,7 @@ def name():
return "Plugin Installer"
def version():
return "Version 1.2"
return "Version 1.2.1"
def description():
return "Downloads and installs QGIS python plugins"

View File

@ -436,11 +436,8 @@ class Repositories(QObject):
if QGIS_VER[0]==qgisMinimumVersion[0] or (qgisMinimumVersion!="0" and qgisMaximumVersion!="2"): # to be deleted
#add the plugin to the cache
plugins.addFromRepository(plugin)
self.mRepositories[reposName]["state"] = 2
else:
#print "Repository parsing error"
self.mRepositories[reposName]["state"] = 3
self.mRepositories[reposName]["error"] = QCoreApplication.translate("QgsPluginInstaller","Couldn't parse output from the repository")
# set state=2, even if the repo is empty
self.mRepositories[reposName]["state"] = 2
self.emit(SIGNAL("repositoryFetched(QString)"), reposName )