+ valid = False
+ break
+ ## Try to retrieve the informations about the toolchain only for the valid toolchains
+ if valid:
+ self._validation_process = QProcess()
+ self._validation_process.start(filename, ["-v"])
+ self._validation_process.waitForStarted(1000)
+ if self._validation_process.waitForFinished(200):
+ description = str(self._validation_process.readAllStandardError())
+ info = bertos_utils.getToolchainInfo(description)
+ if len(info.keys()) >= 4:
+ valid = True
+ else:
+ self._validation_process.kill()
+ ## Add the item in the list with the appropriate associate data.
+ if valid:
+ self._validItem(i, info)
+ else:
+ self._invalidItem(i)
+ toolchains = self.toolchains()
+ toolchains[filename] = True
+ self.setToolchains(toolchains)