forked from qt-creator/qt-creator
Android: Fix the SDK platforms parsing for SDK tools 26.1.1
Task-number: QTCREATORBUG-18962 Change-Id: I780193be482ebc151931196792068d7c4d1ad808 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "utils/environment.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
#include <QRegularExpression>
|
||||
#include <QSettings>
|
||||
|
||||
namespace {
|
||||
@@ -175,8 +176,9 @@ void SdkManagerOutputParser::parsePackageListing(const QString &output)
|
||||
}
|
||||
};
|
||||
|
||||
foreach (QString outputLine, output.split('\n')) {
|
||||
MarkerTag marker = parseMarkers(outputLine);
|
||||
QRegularExpression delimiters("[\n\r]");
|
||||
foreach (QString outputLine, output.split(delimiters)) {
|
||||
MarkerTag marker = parseMarkers(outputLine.trimmed());
|
||||
|
||||
if (marker & SectionMarkers) {
|
||||
// Section marker found. Update the current section being parsed.
|
||||
|
Reference in New Issue
Block a user