...
 
Commits (2)
......@@ -124,13 +124,11 @@ void RunnerWorker::processNextPhase()
// If we're here, we're successfully over.
emit runFinished(true);
return;
break;
default:
// Urgh.. what?
manageErrors(Akabei::Error::List() << Akabei::Error(Akabei::Error::AkabeiInternalError,
tr("An internal error occurred during running the transaction")));
return;
break;
}
processNextPhase();
} else {
......
......@@ -144,13 +144,11 @@ void ValidatorWorker::processNextPhase()
// If we're here, we're successfully over.
emit validationFinished(true, m_operations);
return;
break;
default:
// Urgh.. what?
manageErrors(Error::List() << Error(Error::AkabeiInternalError,
tr("An internal error occurred during validation")));
return;
break;
}
processNextPhase();
return;
......
......@@ -162,7 +162,7 @@ void PolkitRemoveOperation::validate()
{
// Check if the local DB has this package
Package::List packages = Backend::instance()->localDatabase()->searchPackages(d->package->name());
bool found;
bool found = false;
foreach (Package *p, packages) {
if (p->name() == d->package->name()) {
found = true;
......