Skip to content

Commit f0add04

Browse files
authored
Merge pull request #6144 from BOINC/dpa_buda9
debug BUDA on Unix
2 parents be5afa3 + a15de51 commit f0add04

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

client/client_types.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,11 @@ int FILE_INFO::merge_info(FILE_INFO& new_info) {
645645
// This deals with cases where somehow a file didn't
646646
// get protected right when it was initially downloaded.
647647
//
648-
if (status == FILE_PRESENT && new_info.executable) {
648+
if (status == FILE_PRESENT && !executable && new_info.executable) {
649+
msg_printf(project, MSG_INTERNAL_ERROR,
650+
"%s has changed to executable", name
651+
);
652+
executable = true;
649653
int retval = set_permissions();
650654
if (retval) {
651655
msg_printf(project, MSG_INTERNAL_ERROR,

html/user/buda.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function create_templates($variant, $variant_desc, $dir) {
199199
$x = "<input_template>\n";
200200
$ninfiles = 1 + count($variant_desc->input_file_names) + count($variant_desc->app_files);
201201
for ($i=0; $i<$ninfiles; $i++) {
202-
$x .= " <file_info>\n <no_delete/>\n </file_info>\n";
202+
$x .= " <file_info>\n <no_delete/>\n <executable/>\n </file_info>\n";
203203
}
204204
$x .= " <workunit>\n";
205205
$x .= file_ref_in($variant_desc->dockerfile);

lib/hostinfo.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ void HOST_INFO::clear_host_info() {
8989
}
9090

9191
int HOST_INFO::parse(XML_PARSER& xp, bool static_items_only) {
92+
int i;
9293
clear_host_info();
9394
while (!xp.get_tag()) {
9495
if (xp.match_tag("/host_info")) return 0;
@@ -144,8 +145,15 @@ int HOST_INFO::parse(XML_PARSER& xp, bool static_items_only) {
144145
}
145146
#else
146147
if (xp.parse_str("docker_version", docker_version, sizeof(docker_version))) continue;
148+
if (xp.parse_int("docker_type", i)) {
149+
docker_type = (DOCKER_TYPE)i;
150+
continue;
151+
}
147152
if (xp.parse_str("docker_compose_version", docker_compose_version, sizeof(docker_compose_version))) continue;
148-
if (xp.parse_str("docker_version", docker_version, sizeof(docker_version))) continue;
153+
if (xp.parse_int("docker_compose_type", i)) {
154+
docker_compose_type = (DOCKER_TYPE)i;
155+
continue;
156+
}
149157
#endif
150158
if (xp.parse_str("product_name", product_name, sizeof(product_name))) continue;
151159
if (xp.parse_str("virtualbox_version", virtualbox_version, sizeof(virtualbox_version))) continue;

0 commit comments

Comments
 (0)