remove timeout for process runtime for opkg-commands
This commit is contained in:
		@@ -69,8 +69,12 @@ 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();
 | 
				
			||||||
            // wait forever fot git-commands to finish
 | 
					            // wait forever for git/opkg-commands to finish
 | 
				
			||||||
            int const wait = m_command.trimmed().startsWith("git", Qt::CaseInsensitive) ? -1 : m_waitForFinishTimeout;
 | 
					            int wait = m_waitForFinishTimeout;
 | 
				
			||||||
 | 
					            if (m_command.trimmed().startsWith("git", Qt::CaseInsensitive) ||
 | 
				
			||||||
 | 
					                m_command.trimmed().startsWith("opkg", Qt::CaseInsensitive)) {
 | 
				
			||||||
 | 
					                wait = -1;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            bool const no_timeout = p->waitForFinished(wait);
 | 
					            bool const no_timeout = p->waitForFinished(wait);
 | 
				
			||||||
            if (no_timeout) {
 | 
					            if (no_timeout) {
 | 
				
			||||||
                qDebug() << "PROCESS" << m_command << "FINISHED IN" << p->workingDirectory();
 | 
					                qDebug() << "PROCESS" << m_command << "FINISHED IN" << p->workingDirectory();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user