Commit 175357d8 authored by AlmAck's avatar AlmAck

better output, semplified to be more clear to understand.

added version number to the packages shown
before:
 newpkg -> (replacedpkg1, replacedpkg2, ...)

after:
 newpkg replaces replacedpkg1, replacedpkg2, ...
parent 9a96712e
......@@ -310,13 +310,12 @@ void QueueOperation::validationFinished(bool valid)
out << '\n' << QObject::tr("The following packages are going to be replaced:") << '\n';
foreach (Akabei::Package* pkg, m_transaction->toBeReplaced().keys()) {
QList<Akabei::Package*> older = m_transaction->toBeReplaced().value(pkg);
out << pkg->name() << " -> (";
out << pkg->name() << " (" << pkg->version().toByteArray() << ") " << QObject::tr("replaces") << " ";
foreach(Akabei::Package* replaced, older){
out << replaced->name();
out << replaced->name() << " (" << replaced->version().toByteArray() << ") ";
if (replaced != *(older.begin()))
out << QObject::tr(", ");
}
out << ")";
}
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