| 13251 | } |
| 13252 | |
| 13253 | static void cli_update_prep_report(const cli_update_prep_failure_t *failure) { |
| 13254 | const char *step = failure->step ? failure->step : "an unrecorded step"; |
| 13255 | const char *reason = failure->os_error != 0 ? strerror(failure->os_error) : failure->detail; |
| 13256 | if (reason) { |
| 13257 | (void)fprintf(stderr, "error: signed update candidate preparation failed while %s: %s\n", |
| 13258 | step, reason); |
| 13259 | } else { |
| 13260 | (void)fprintf(stderr, "error: signed update candidate preparation failed while %s\n", step); |
| 13261 | } |
| 13262 | } |
| 13263 | #endif |
| 13264 | |
| 13265 | static int extract_and_install_binary(extract_install_args_t args) { |
no outgoing calls
no test coverage detected