File 0002-Engine-Ensure-we-are-not-using-the-wrong-ProvidersUr.patch of Package knewstuff
From 04b7ef9e60674f2194cc9186e233e8210202499a 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 13afab56..77f32ffb 100644
--- a/src/core/engine.cpp
+++ b/src/core/engine.cpp
@@ -264,6 +264,10 @@ bool Engine::init(const QString &configfile)
Q_EMIT uploadEnabledChanged();
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";
+ }
if (group.readEntry("UseLocalProvidersFile", "false").toLower() == QLatin1String{"true"}) {
// The local providers file is called "appname.providers", to match "appname.knsrc"
m_providerFileUrl = QUrl::fromLocalFile(QLatin1String("%1.providers").arg(configFullPath.left(configFullPath.length() - 6))).toString();
--
2.33.1