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()) {
|
while (!in.atEnd()) {
|
||||||
QString line = in.readLine();
|
QString line = in.readLine();
|
||||||
// TODO: "^\\s*[#]{0,}$" : empty line or comment line starting with #
|
// TODO: "^\\s*[#]{0,}$" : empty line or comment line starting with #
|
||||||
static const QRegularExpression comment("^\\s*#.*$");
|
static const QRegularExpression comment("^\\s*[#].*$");
|
||||||
if (line.indexOf(comment, 0) == -1) {
|
static const QRegularExpression emptyLine("^\\s*$");
|
||||||
// found opkg command
|
if (line.indexOf(emptyLine, 0) == -1 &&
|
||||||
|
line.indexOf(comment, 0) == -1) {
|
||||||
QString opkgCommand = line.trimmed();
|
QString opkgCommand = line.trimmed();
|
||||||
|
qCritical() << "Found opkg-command" << opkgCommand;
|
||||||
if (!executeOpkgCommand(opkgCommand)) {
|
if (!executeOpkgCommand(opkgCommand)) {
|
||||||
opkgErrorLst << opkgCommand;
|
opkgErrorLst << opkgCommand;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user