void *async_data;
};
-static inline bool have_busybox(void)
-{
-#ifdef WITH_BUSYBOX
- return true;
-#else
- return false;
-#endif
-}
-
const char *mount_base(void)
{
return DEVICE_MOUNT_BASE;
#ifndef PETITBOOT_TEST
+#ifdef WITH_BUSYBOX
+static inline bool have_busybox(void) { return true; }
+#else
+static inline bool have_busybox(void) { return false; }
+#endif
+
static char *local_name(void *ctx)
{
char *ret, tmp[] = "/tmp/pb-XXXXXX";
} else {
result->status = LOAD_ERROR;
load_url_result_cleanup_local(result);
+ pb_debug("Download client stdout buffer:\n%s\n",
+ process->stdout_buf);
}
if (result->status == LOAD_OK && process->stdout_data)
}
}
- if (rc != 3)
+ if (rc != 3) {
percentage = size = 0;
+ suffix = ' ';
+ }
device_handler_status_download(handler, procinfo,
percentage, size, suffix);