Commit 3aa1da66 authored by Lisa's avatar Lisa
Browse files

Display new version for packages to be upgraded

parent 33767582
......@@ -280,10 +280,11 @@ void QueueOperation::validationFinished(bool valid)
}
if (!m_transaction->toBeUpgraded().isEmpty()) {
out << QObject::tr("The following packages are going to be upgraded: ");
foreach (Akabei::Package * pkg, m_transaction->toBeUpgraded()) {
if (pkg != *(m_transaction->toBeUpgraded().begin()))
foreach (Akabei::Package* old, m_transaction->toBeUpgraded().keys()) {
if (old != *(m_transaction->toBeUpgraded().keys().begin()))
out << QObject::tr(", ");
out << pkg->name() << " (" << pkg->version().toByteArray() << ")";//TODO: Also show the to be installed version
Akabei::Package* newer = m_transaction->toBeUpgraded().value(old);
out << old->name() << " (" << old->version().toByteArray() << " -> " << newer->version().toByteArray() << ")";
}
out << endl;
}
......
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