[neon/kde/plasma-workspace/Neon/release] debian/patches: Update 0001_kf5_appstream_1
Carlos De Maine
null at kde.org
Fri Sep 15 13:14:01 BST 2023
Git commit f0dcfb6dd45a6cd8145a42de034f613d9e1bdaeb by Carlos De Maine.
Committed on 15/09/2023 at 14:14.
Pushed by carlosdem into branch 'Neon/release'.
Update 0001_kf5_appstream_1
M +22 -0 debian/patches/0001_kf5_appstream_1
https://invent.kde.org/neon/kde/plasma-workspace/-/commit/f0dcfb6dd45a6cd8145a42de034f613d9e1bdaeb
diff --git a/debian/patches/0001_kf5_appstream_1 b/debian/patches/0001_kf5_appstream_1
index c11fea1..520e2ab 100644
--- a/debian/patches/0001_kf5_appstream_1
+++ b/debian/patches/0001_kf5_appstream_1
@@ -130,4 +130,26 @@ index 18197ab08b05c4b202b946c4450bf83de44e9c51..b585f55c36f680d5b83202892a35effd
+#include <AppStreamQt5/pool.h>
#include <KRunner/AbstractRunner>
#include <QMutex>
+diff --git a/runners/appstream/appstreamrunner.cpp b/runners/appstream/appstreamrunner.cpp
+index 7d0c646c18c909041adb0e7324dc70c073640da2..31ef6580248c77ab46b3ed068fe1829593a3f137 100644
+--- a/runners/appstream/appstreamrunner.cpp
++++ b/runners/appstream/appstreamrunner.cpp
+@@ -150,12 +150,12 @@ QList<AppStream::Component> InstallerRunner::findComponentsByString(const QStrin
+ QMutexLocker locker(&m_appstreamMutex);
+ QString error;
+ static bool warnedOnce = false;
+- static bool opened = m_db.load(&error);
++ static bool opened = m_db.load();
+ if (!opened) {
+ if (warnedOnce) {
+- qCDebug(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error;
++ qCDebug(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << m_db.lastError();
+ } else {
+- qCWarning(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error;
++ qCWarning(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << m_db.lastError();
+ warnedOnce = true;
+ }
+ }
+
+
More information about the Neon-commits
mailing list