Commit ba1554d1 authored by Lukas Appelhans's avatar Lukas Appelhans

Give us a status update

parent b69b57cf
......@@ -267,6 +267,32 @@ void SyncOperation::showProgress(int progress)
{
QTextStream out(stdout);
out.reset();
switch (AkabeiClient::Backend::instance()->transactionHandler()->phase()) {
case AkabeiClient::TransactionHandler::Validating:
out << i18n("Validating");
break;
case AkabeiClient::TransactionHandler::RunningPreHooks:
out << i18n("Running PreHooks");
break;
case AkabeiClient::TransactionHandler::Downloading:
out << i18n("Downloading");
break;
case AkabeiClient::TransactionHandler::Processing:
out << i18n("Processing");
break;
case AkabeiClient::TransactionHandler::RunningScriptlets:
out << i18n("Running Scriplets");
break;
case AkabeiClient::TransactionHandler::RunningPostHooks:
out << i18n("Running PostHooks");
break;
case AkabeiClient::TransactionHandler::Cleaning:
out << i18n("Cleaning");
break;
default:
out << i18n("Finished");
break;
};
out << " [";
for (int i = 1; i != 11; i++) {
if (progress / i >= 10) {
......
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