Android: Fix sdkmanager package dependencies parse error

Fixes: QTCREATORBUG-23324
Change-Id: I14829277cc3a121af7da53ecc3bd18d34c0fcc65
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Assam Boudjelthia
2020-01-14 11:02:36 +02:00
parent ffdca904cf
commit e3d8c97998

View File

@@ -473,6 +473,11 @@ void SdkManagerOutputParser::parsePackageListing(const QString &output)
QRegularExpression delimiters("[\\n\\r]");
for (const QString &outputLine : output.split(delimiters)) {
// NOTE: we don't want to parse Dependencies part as it does not add value
if (outputLine.startsWith(" "))
continue;
MarkerTag marker = parseMarkers(outputLine.trimmed());
if (marker & SectionMarkers) {
// Section marker found. Update the current section being parsed.