From 6ef724e72be1060641c792f480ab34aab0ea738f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 2 Feb 2012 20:08:34 +0100 Subject: recovery: fix recovery_send_component --- src/recovery.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/recovery.c b/src/recovery.c index e2e07b7..0487322 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -197,21 +197,18 @@ int recovery_send_component(struct idevicerestore_client_t* client, plist_t buil if (client->tss) { if (tss_get_entry_path(client->tss, component, &path) < 0) { - error("ERROR: Unable to get component path\n"); - return -1; + debug("NOTE: No path for component %s in TSS, will fetch from build_identity\n", component); } - } else { + } + if (!path) { if (build_identity_get_component_path(build_identity, component, &path) < 0) { - error("ERROR: Unable to get component: %s\n", component); + error("ERROR: Unable to get path for component '%s'\n", component); if (path) free(path); return -1; } } - info("Resetting recovery mode connection...\n"); - irecv_reset(client->recovery->client); - if (client->tss) info("%s will be signed\n", component); -- cgit v1.1-32-gdbae