Commit f87ada19 authored by AlmAck's avatar AlmAck

new replace operation. Write to the user output the list of packages to be replaced.

parent 33b195ab
......@@ -306,6 +306,16 @@ void QueueOperation::validationFinished(bool valid)
}
out << endl;
}
if (!m_transaction->toBeReplaced().isEmpty()) {
out << QObject::tr("The following packages are going to be replaced: ");
foreach (Akabei::Package* old, m_transaction->toBeReplaced().keys()) {
if (old != *(m_transaction->toBeReplaced().keys().begin()))
out << QObject::tr(", ");
Akabei::Package* newer = m_transaction->toBeReplaced().value(old);
out << old->name() << " (" << old->version().toByteArray() << " -> " << newer->version().toByteArray() << ")";
}
out << endl;
}
out << endl;
if (downloadSize > 0) {
out << QObject::tr("Download size: %1").arg(Akabei::Helpers::formatByteSize(downloadSize)) << 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