Commit c3495090 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

pk: Allow some error codes from offline updates

BUG: 443090

(cherry picked from commit 4da37b0f)
parent 5f08fb9a
Pipeline #207281 passed with stage
in 1 minute and 2 seconds
......@@ -100,7 +100,12 @@ void PackageKitNotifier::checkOfflineUpdates()
const QString packagesJoined = group.readEntry("Packages");
const auto packages = packagesJoined.splitRef(QLatin1Char(','));
const bool isMobile = QByteArrayList{"1", "true"}.contains(qgetenv("QT_QUICK_CONTROLS_MOBILE"));
if (!success) {
const QString errorCode = group.readEntry("ErrorCode");
static QSet<QString> allowedAlreadyInstalled = {
if (!success && !allowedAlreadyInstalled.contains(errorCode)) {
const QString errorDetails = group.readEntry("ErrorDetails");
auto *notification = new KNotification(QStringLiteral("OfflineUpdateFailed"), KNotification::Persistent);
Supports Markdown
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