mirror of https://gitlab.com/nakst/essence
return errors from build-port if automated_build set
This commit is contained in:
parent
a28bdd4da0
commit
184c536289
|
@ -1503,11 +1503,15 @@ void DoCommand(const char *l) {
|
||||||
l2 = (char *) l + 11;
|
l2 = (char *) l + 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
CallSystemF("ports/%s/port.sh", l2);
|
int status = CallSystemF("ports/%s/port.sh", l2);
|
||||||
|
|
||||||
if (!alreadyNamedPort) {
|
if (!alreadyNamedPort) {
|
||||||
free(l2);
|
free(l2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (automatedBuild) {
|
||||||
|
exit(status);
|
||||||
|
}
|
||||||
} else if (0 == memcmp(l, "get-source ", 11)) {
|
} else if (0 == memcmp(l, "get-source ", 11)) {
|
||||||
if (CallSystem("mkdir -p bin/cache && rm -rf bin/source")) {
|
if (CallSystem("mkdir -p bin/cache && rm -rf bin/source")) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue