Commit 0ec3f768 authored by Stefan Brüns's avatar Stefan Brüns

[AppStream Runner] Also search when there were errors during Pool::load

Summary:
The return code of the Pool::load() method is somewhat misleading, as it
returns true only if there were no errors at all. The error flag is set on the first
validation error, but the pool will contain meaningful data nevertheless.

BUG: 397531

Test Plan:
Searching for "blend"
Unfixed version:
No results are returned under "Software Center"
Fixed version:
Software Center: "Get Blender", "Get Hugin", ...

Reviewers: #plasma, #frameworks, apol

Reviewed By: apol

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14807
parent ea19f9b6
......@@ -116,7 +116,6 @@ QList<AppStream::Component> InstallerRunner::findComponentsByString(const QStrin
static bool opened = m_db.load();
if(!opened) {
qWarning() << "no appstream for you";
return QList<AppStream::Component>();
}
return m_db.search(query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment