Commit 2e273e81 authored by Lukas Appelhans's avatar Lukas Appelhans
Browse files

Also check for the other packages before complaining

parent 61b3ae41
......@@ -220,7 +220,15 @@ void QueueOperation::validationFinished(bool valid)
QSet<Akabei::Package*> conflict;
foreach (AkabeiClient::QueueItem * item, AkabeiClient::Backend::instance()->queue()->items()) {
foreach (Akabei::Package *p, item->requiredByTree()) {
if (m_transaction->toBeRemoved().contains(p))
bool removeConflicting = false;
foreach (AkabeiClient::QueueItem * item, AkabeiClient::Backend::instance()->queue()->items()) {
if (item->package()->name() == p->name()) {
removeConflicting = true;
break;
}
}
if (!removeConflicting && m_transaction->toBeRemoved().contains(p))
conflict << p;
}
}
......
Markdown is supported
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