From 27161960daec42cb81bdf2c4629ed59cfeafca9e Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Thu, 11 Apr 2013 10:12:18 +0200 Subject: we need to continue if the operations is unknown Change-Id: Ife281fabca69af58edae77fc4c413f336535f63c Reviewed-by: Iikka Eklund Reviewed-by: Niels Weber Reviewed-by: Karsten Heimrich --- src/libs/installer/binaryformat.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libs') diff --git a/src/libs/installer/binaryformat.cpp b/src/libs/installer/binaryformat.cpp index 5022b25a7..c5168dcb8 100644 --- a/src/libs/installer/binaryformat.cpp +++ b/src/libs/installer/binaryformat.cpp @@ -1079,8 +1079,10 @@ int BinaryContent::registerPerformedOperations() for (int i = 0; i < d->m_performedOperationsData.count(); ++ i) { const QPair opPair = d->m_performedOperationsData.at(i); QScopedPointer op(KDUpdater::UpdateOperationFactory::instance().create(opPair.first)); - Q_ASSERT_X(!op.isNull(), __FUNCTION__, QString::fromLatin1("Invalid operation name: %1.") - .arg(opPair.first).toLatin1()); + if (op.isNull()) { + qWarning() << QString::fromLatin1("Failed to load unknown operation %1").arg(opPair.first); + continue; + } if (!op->fromXml(opPair.second)) { qWarning() << "Failed to load XML for operation:" << opPair.first; -- cgit v1.2.3