In process_binaries_thread_, exit earlier if the item is not found in the PPA
This commit is contained in:
parent
a089918462
commit
bb3d45c4ea
@ -257,6 +257,8 @@ bool WebServer::start_server(quint16 port) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!found_in_ppa) throw std::runtime_error("Not found in the PPA.");
|
||||||
|
|
||||||
bool all_builds_passed = true;
|
bool all_builds_passed = true;
|
||||||
for (auto build : target_spph.getBuilds()) {
|
for (auto build : target_spph.getBuilds()) {
|
||||||
if (build.buildstate != "Successfully built") all_builds_passed = false;
|
if (build.buildstate != "Successfully built") all_builds_passed = false;
|
||||||
@ -265,11 +267,7 @@ bool WebServer::start_server(quint16 port) {
|
|||||||
build.arch_tag, build.buildstate));
|
build.arch_tag, build.buildstate));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found_in_ppa) {
|
if (!all_builds_passed) throw std::runtime_error("Build(s) pending or failed, job is not successful.");
|
||||||
throw std::runtime_error("Not found in the PPA.");
|
|
||||||
} else if (!all_builds_passed) {
|
|
||||||
throw std::runtime_error("Build(s) pending or failed, job is not successful.");
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
pkgconf
|
pkgconf
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user