Minor: fixed output format (in text edit)
This commit is contained in:
parent
89d1ec5b21
commit
145fdab26e
@ -820,13 +820,13 @@ bool Worker::updateFiles(quint8 percent) {
|
|||||||
f.close();
|
f.close();
|
||||||
if (cmdCount > 0) {
|
if (cmdCount > 0) {
|
||||||
m_displayIndex = 1;
|
m_displayIndex = 1;
|
||||||
QString prepend = QString("(") + QString("%1").arg(m_displayIndex).rightJustified(2, ' ') + QString(")")
|
QString prepend = QString("(") + QString("%1").arg(m_displayIndex).rightJustified(3, ' ') + QString(")")
|
||||||
+ QString(" Update opkg pakets ... ");
|
+ QString(" Update opkg pakets ... ");
|
||||||
opkgCommands.prepend(prepend);
|
opkgCommands.prepend(prepend);
|
||||||
emit replaceLast(opkgCommands, UPDATE_STEP_DONE);
|
emit replaceLast(opkgCommands, UPDATE_STEP_DONE);
|
||||||
} else {
|
} else {
|
||||||
m_displayIndex = 1;
|
m_displayIndex = 1;
|
||||||
emit replaceLast(QString("(") + QString("%1").arg(m_displayIndex).rightJustified(2, ' ') + QString(")")
|
emit replaceLast(QString("(") + QString("%1").arg(m_displayIndex).rightJustified(3, ' ') + QString(")")
|
||||||
+ QString(" Update opkg pakets ... "), UPDATE_STEP_FAIL);
|
+ QString(" Update opkg pakets ... "), UPDATE_STEP_FAIL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -898,6 +898,7 @@ bool Worker::syncCustomerRepositoryAndFS() {
|
|||||||
if (!error) {
|
if (!error) {
|
||||||
Command c("bash");
|
Command c("bash");
|
||||||
qInfo() << "EXECUTING CMD..." << cmd;
|
qInfo() << "EXECUTING CMD..." << cmd;
|
||||||
|
Utils::printInfoMsg(QString("EXECUTING CMD %1...").arg(cmd));
|
||||||
if (c.execute(m_customerRepository, QStringList() << "-c" << cmd)) {
|
if (c.execute(m_customerRepository, QStringList() << "-c" << cmd)) {
|
||||||
QStringList result = c.getCommandResult().split('\n');
|
QStringList result = c.getCommandResult().split('\n');
|
||||||
QString const &p1 = "send_files mapped ";
|
QString const &p1 = "send_files mapped ";
|
||||||
|
Loading…
Reference in New Issue
Block a user