Commit 4da37b0f 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
parent e965aefb
Pipeline #207279 passed with stage
in 1 minute and 5 seconds
......@@ -102,7 +102,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 = {
QStringLiteral("package-already-installed"),
QStringLiteral("all-packages-already-installed"),
};
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