File 0002-Engine-Ensure-we-are-not-using-the-wrong-ProvidersUr.patch of Package knewstuff.17405
From b0972d5d41a41795485bd96f7fbc884b104ef8d7 Mon Sep 17 00:00:00 2001
From: Aleix Pol <aleixpol@kde.org>
Date: Tue, 8 Feb 2022 11:48:11 +0100
Subject: [PATCH 2/3] Engine: Ensure we are not using the wrong ProvidersUrl
(cherry picked from commit c8165b7a0d622e318b3353ccf257a8f229dd12c9)
---
src/core/engine.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/core/engine.cpp b/src/core/engine.cpp
index 26511702..96f5a926 100644
--- a/src/core/engine.cpp
+++ b/src/core/engine.cpp
@@ -153,6 +153,10 @@ bool Engine::init(const QString &configfile)
qCDebug(KNEWSTUFFCORE) << "Categories: " << m_categories;
m_providerFileUrl = group.readEntry("ProvidersUrl");
+ if (m_providerFileUrl == QLatin1String("https://download.kde.org/ocs/providers.xml")) {
+ m_providerFileUrl = QStringLiteral("https://autoconfig.kde.org/ocs/providers.xml");
+ qCWarning(KNEWSTUFFCORE) << "Please make sure" << configfile << "has ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml";
+ }
d->tagFilter = group.readEntry("TagFilter", QStringList(QStringLiteral("ghns_excluded!=1")));
d->downloadTagFilter = group.readEntry("DownloadTagFilter", QStringList());
--
2.33.1