File Do-not-attempt-to-download-non-existing-GeoIp-data.patch of Package ktorrent.17322

From ca128f13009c527339e28e305218ba01ea206f18 Mon Sep 17 00:00:00 2001
From: Alexander Lohnau <alexander.lohnau@gmx.de>
Date: Fri, 21 May 2021 22:21:49 +0200
Subject: [PATCH] Do not attempt to download non-existing GeoIp data

CCBUG: 403054

This skips the download and consequently silences the warning, a proper fix is in master implemented.
---
 plugins/infowidget/geoipmanager.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/infowidget/geoipmanager.cpp b/plugins/infowidget/geoipmanager.cpp
index bdeaef89..ef6b3cb1 100644
--- a/plugins/infowidget/geoipmanager.cpp
+++ b/plugins/infowidget/geoipmanager.cpp
@@ -107,6 +107,8 @@ QString GeoIPManager::countryName(int country_id)
 
     void GeoIPManager::downloadDataBase()
     {
+        Out(SYS_INW | LOG_IMPORTANT) << "The download GeoIP database loading is defunct, skipping download" << endl;
+        return;
 #ifndef USE_SYSTEM_GEOIP
         Out(SYS_INW | LOG_NOTICE) << "Downloading GeoIP database: " << geoip_url << endl;
         download_destination = kt::DataDir(CreateIfNotExists) + geoip_url.fileName();
-- 
GitLab

openSUSE Build Service is sponsored by