Changeset View
Changeset View
Standalone View
Standalone View
runners/appstream/appstreamrunner.cpp
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 116 | { | |||
---|---|---|---|---|---|
120 | static bool opened = m_db.load(&error); | 120 | static bool opened = m_db.load(&error); | ||
121 | if(!opened) { | 121 | if(!opened) { | ||
122 | if (warnedOnce) { | 122 | if (warnedOnce) { | ||
123 | qCDebug(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error; | 123 | qCDebug(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error; | ||
124 | } else { | 124 | } else { | ||
125 | qCWarning(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error; | 125 | qCWarning(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error; | ||
126 | warnedOnce = true; | 126 | warnedOnce = true; | ||
127 | } | 127 | } | ||
128 | return QList<AppStream::Component>(); | | |||
129 | } | 128 | } | ||
130 | 129 | | |||
131 | return m_db.search(query); | 130 | return m_db.search(query); | ||
132 | } | 131 | } | ||
133 | 132 | | |||
134 | #include "appstreamrunner.moc" | 133 | #include "appstreamrunner.moc" |