From edd73a9940387bb7d04d2fbfc3f9c8e2354fd555 Mon Sep 17 00:00:00 2001 From: "Thomas Baumann @work" Date: Wed, 20 Dec 2023 15:15:39 +0100 Subject: [PATCH] Update installer_data.py update to handle (temporary) empty repositories (cherry picked from commit 50b88428952055519bf4d72c441f40970a84e11c) --- python/pyplugin_installer/installer_data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/pyplugin_installer/installer_data.py b/python/pyplugin_installer/installer_data.py index e4be813f430e..d68c44e7964b 100644 --- a/python/pyplugin_installer/installer_data.py +++ b/python/pyplugin_installer/installer_data.py @@ -351,8 +351,9 @@ def xmlDownloaded(self): b.append("& ") content = content.replace(a, b) reposXML.setContent(content) - pluginNodes = reposXML.elementsByTagName("pyqgis_plugin") - if pluginNodes.size(): + plugins_tag = reposXML.elementsByTagName("plugins") + if plugins_tag.size(): + pluginNodes = reposXML.elementsByTagName("pyqgis_plugin") for i in range(pluginNodes.size()): fileName = pluginNodes.item(i).firstChildElement("file_name").text().strip() if not fileName: