From patchwork Mon Dec 19 04:19:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 706936 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3thnml5qY1z9s65 for ; Mon, 19 Dec 2016 15:21:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="vdwe0qSr"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3thnml4mMHzDwHf for ; Mon, 19 Dec 2016 15:21:43 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="vdwe0qSr"; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Received: from mendozajonas.com (mendozajonas.com [188.166.185.233]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3thnky1gn8zDwHQ for ; Mon, 19 Dec 2016 15:20:10 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="vdwe0qSr"; dkim-atps=neutral Received: from skellige.ozlabs.ibm.com (unknown [122.99.82.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: sam@mendozajonas.com) by mendozajonas.com (Postfix) with ESMTPSA id D1230143FB0; Mon, 19 Dec 2016 12:20:06 +0800 (SGT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mendozajonas.com; s=mail; t=1482121207; bh=3fK3AHb7uh4c1jqgtdd7ah7t8Cx8J99zNLe+eA2ZZfg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vdwe0qSrMn7R99skItTxNJchorw4IddiTjfrlrLmwLkSGrqsGFhpc2/rsmLb+qscA sTmaWTPC8K9iQZZIVfre/muRvKuRx8OdfzAQnFd1D+dPAaZssilXgmnfrTulne06sX QfGpKe5d7h3Z5ITnNVODetf0B5Bs/lXIQTZOzkQ4= From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH 27/29] discover/paths: Announce download completion Date: Mon, 19 Dec 2016 15:19:13 +1100 Message-Id: <20161219041915.30497-28-sam@mendozajonas.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161219041915.30497-1-sam@mendozajonas.com> References: <20161219041915.30497-1-sam@mendozajonas.com> X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Mendoza-Jonas MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Signed-off-by: Samuel Mendoza-Jonas --- discover/paths.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discover/paths.c b/discover/paths.c index 0f102a2..e76dc35 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -14,6 +14,7 @@ #include #include #include +#include "i18n/i18n.h" #include "paths.h" #include "device-handler.h" @@ -109,6 +110,10 @@ static void load_url_process_exit(struct process *process) load_url_result_cleanup_local(result); } + if (result->status == LOAD_OK && process->stdout_data) + device_handler_status_info(process->stdout_data, + _("Download complete: %s"), task->url->file); + /* The load callback may well free the ctx, which was the * talloc parent of the task. Therefore, we want to do our cleanup * before invoking it