mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
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:
parent
0a26980c1f
commit
25d18c2caa
@ -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"
|
||||
|
@ -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 )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user