Skip to content

Commit

Permalink
plugin installer: do not consider an empty repo as invalid
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15832 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Apr 27, 2011
1 parent 7b99aba commit 84a4524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/plugins/plugin_installer/__init__.py
Expand Up @@ -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"
Expand Down
7 changes: 2 additions & 5 deletions python/plugins/plugin_installer/installer_data.py
Expand Up @@ -436,11 +436,8 @@ def xmlDownloaded(self,nr,state):
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 )

Expand Down

0 comments on commit 84a4524

Please sign in to comment.