Allow empty lines in opkg_commands.
This commit is contained in:
parent
1dc7578645
commit
fa7d1ba879
@ -880,10 +880,12 @@ bool Worker::execOpkgCommands() {
|
||||
while (!in.atEnd()) {
|
||||
QString line = in.readLine();
|
||||
// TODO: "^\\s*[#]{0,}$" : empty line or comment line starting with #
|
||||
static const QRegularExpression comment("^\\s*#.*$");
|
||||
if (line.indexOf(comment, 0) == -1) {
|
||||
// found opkg command
|
||||
static const QRegularExpression comment("^\\s*[#].*$");
|
||||
static const QRegularExpression emptyLine("^\\s*$");
|
||||
if (line.indexOf(emptyLine, 0) == -1 &&
|
||||
line.indexOf(comment, 0) == -1) {
|
||||
QString opkgCommand = line.trimmed();
|
||||
qCritical() << "Found opkg-command" << opkgCommand;
|
||||
if (!executeOpkgCommand(opkgCommand)) {
|
||||
opkgErrorLst << opkgCommand;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user