Set version to 1.3.7: wait forever for git-commands to finish in QProcess.
This commit is contained in:
parent
2a2751f6f3
commit
2e7d33c4c8
@ -21,6 +21,8 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
# Fixed sending messages to ISMAS.
|
# Fixed sending messages to ISMAS.
|
||||||
# Always execute contents of opkg_commands-file (even if there are no
|
# Always execute contents of opkg_commands-file (even if there are no
|
||||||
# changes).
|
# changes).
|
||||||
|
# 1.3.7 : Wait forever for git-commands to finish in QProcess executing such
|
||||||
|
# a command.
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
BUILD_DATE=$$system("date /t")
|
BUILD_DATE=$$system("date /t")
|
||||||
@ -30,7 +32,7 @@ win32 {
|
|||||||
BUILD_TIME=$$system("date +%H:%M:%S")
|
BUILD_TIME=$$system("date +%H:%M:%S")
|
||||||
}
|
}
|
||||||
|
|
||||||
VERSION="1.3.6"
|
VERSION="1.3.7"
|
||||||
|
|
||||||
INCLUDEPATH += plugins
|
INCLUDEPATH += plugins
|
||||||
|
|
||||||
|
@ -69,7 +69,10 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
|||||||
qDebug() << "PROCESS" << m_command << "STARTED IN" << p->workingDirectory();
|
qDebug() << "PROCESS" << m_command << "STARTED IN" << p->workingDirectory();
|
||||||
if (p->state() == QProcess::ProcessState::Running) {
|
if (p->state() == QProcess::ProcessState::Running) {
|
||||||
qDebug() << "PROCESS" << m_command << "RUNNING IN" << p->workingDirectory();
|
qDebug() << "PROCESS" << m_command << "RUNNING IN" << p->workingDirectory();
|
||||||
if (p->waitForFinished(m_waitForFinishTimeout)) {
|
// wait forever fot git-commands to finish
|
||||||
|
int const wait = m_command.trimmed().startsWith("git", Qt::CaseInsensitive) ? -1 : m_waitForFinishTimeout;
|
||||||
|
bool const no_timeout = p->waitForFinished(wait);
|
||||||
|
if (no_timeout) {
|
||||||
qDebug() << "PROCESS" << m_command << "FINISHED IN" << p->workingDirectory();
|
qDebug() << "PROCESS" << m_command << "FINISHED IN" << p->workingDirectory();
|
||||||
if (p->exitStatus() == QProcess::NormalExit) {
|
if (p->exitStatus() == QProcess::NormalExit) {
|
||||||
if ((m_exitCode = p->exitCode()) == 0) {
|
if ((m_exitCode = p->exitCode()) == 0) {
|
||||||
@ -89,8 +92,8 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
qCritical() << "PROCESS" << m_command
|
qCritical() << "PROCESS" << m_command
|
||||||
<< "DID NOT FINISH"
|
<< "DID NOT FINISH WITH" << wait
|
||||||
<< "IN" << p->workingDirectory();
|
<< "MS IN" << p->workingDirectory();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
qCritical() << "WRONG PROCESS STATE" << p->state()
|
qCritical() << "WRONG PROCESS STATE" << p->state()
|
||||||
|
Loading…
Reference in New Issue
Block a user