Message ID | 20230228124709.2629819-3-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBV7P66PQMGQEWRRN7WI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::240; helo=mail-lj1-x240.google.com; envelope-from=swupdate+bncbcxploxj6ikrbv7p66pqmgqewrrn7wi@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=Xjcyw7p8; dkim-atps=neutral Received: from mail-lj1-x240.google.com (mail-lj1-x240.google.com [IPv6:2a00:1450:4864:20::240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQxwF6RsTz245p for <incoming@patchwork.ozlabs.org>; Tue, 28 Feb 2023 23:47:24 +1100 (AEDT) Received: by mail-lj1-x240.google.com with SMTP id 10-20020a05651c12ca00b0028fd85f2e0asf2751725lje.22 for <incoming@patchwork.ozlabs.org>; Tue, 28 Feb 2023 04:47:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677588440; cv=pass; d=google.com; s=arc-20160816; b=VLOPmLhDhWHQbgVPMcRPW6uO13WxSS+O2M6OKu5ox93l3fgsoQHsrqqRS87R3SaSiL xOO+/mQSAwKdyH/khXToiiQBZ19tGaTbigXrs2znvrRE+Kla3B0EUHzzvN/aN/JZUPVU NlsPR2ToKw85lxYMUJFk5mm4/x+RwLDkG7k/SthQCpESFaz7ZHDbwNvQks9OLMdy85BE aP5W+j09UnfLPCGqoWrolptX7HOgHCsL0QMqIrY8pCATxMt9XlZrxfhjTF54ektsVc7G q0N+Ku+1II4lHOKbFhw9YLUzHNjXVTpqio2meX9k3dOb4xFEuydwK8rpy2zSJIqKU6Cp /18Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=kmlJhSlhkxigedPH4Mb+1v4W6hLvL+e7Yh+5KNjBzgE=; b=etk9k2dZUvGafD1IOj2e8+WXLgiMtPsz+ySkBraZ4qoouhjBF/zXf50OlzTBZ73CX7 sJHoqG7u4uxsILZ/yPYjMkZ4UMmgplTOjL6uPzL3IWOV3jQaMBX2vcoRxS4/YXqrJUYw 1PrQdmT9bJi2cq41tpM/GE3Y48wMn1HTQ19+ME5QaOZz4NNC1Gj+Vhhe4vfaAu8LCbYs A0rrLqe6u6Epyrv3aZIE57Lfg9NBOoqs/HOT8t3QhswBn040gXN3yPSApS1FmThd5RuY SZ6I22xvoecdbWQSFUBUbX9y9+wgWpUVslFmLOsCD9Z4In5k6/CSw71s6W/Be0IITLTX ItUQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1677588440; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=kmlJhSlhkxigedPH4Mb+1v4W6hLvL+e7Yh+5KNjBzgE=; b=Xjcyw7p8epIlGtAEbDbfx36NFWOXQ4zSrAMdr6Mu4Hr6xkRqHmI34mxXhsRt/vy6UP p4oYKqw2FSO7XFOgutCJwhcnReoBKmb4B/tr6BeJXjQsqrZZLI0khn+0/jEbfHI1NHQV NDDYzzgWnHhXavlcD2dExGhZ5xMllrzfRXe4dy/2+2cku/7vLHNzoO7Sa01QSmxXoktZ mwLptH/FY7QUQDs3ePVK/r7m1mn9iktUTug4Smhei7yvCbStRmCIqXxmS3zlzpRNKhJc lgCX56oCGw2aN0zrlybjctJM0iDqzedEQ5eID7W27WLTUmNVr/ijkIy6KohRGcgc45Ld v3Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677588440; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=kmlJhSlhkxigedPH4Mb+1v4W6hLvL+e7Yh+5KNjBzgE=; b=fmmWqdAto415F3TCQv03LsyGjHPTq4MRlON7lMRJT9P02YYkMVK3eQHMTB+HssMDKm dSsFgBjwXbX2EgrNfkdM7Sm7noUq7IGzVTf/u4lFQoUg7OkWtriv5Zd395og7iiqPn8M 33pSR9LNVvQbK8uXv/Kqj9uZvezJrex/D/RLkA5R+etkQeA81JqdOaJjWvF77VozO1w0 bMdNqu096pvbPFbnz/HKYSZdlQ6Rabv/YKqT5kA350XaofQgqTmXXbOhuDVoTEs/JZ3F GIleKopJvvYYTlUoqDuOqgluNtmPVXnripmAQN6kwngT5VGrmnJqULPl7eLe9vVIzTET GYOw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AO0yUKVREky3p9JlwkHM+kEbpbtgh9o6tfkXQlqTXECur2JXy68WgFvY bps33NEYrXCj8pfm2s8gIaw= X-Google-Smtp-Source: AK7set/NwAqEjHr8+w0NvZ5Y4CGBMNWFZyFqTzXni31douGGUZ4SCkp3aYQKQrZB7gSeU3qRLhCbxA== X-Received: by 2002:a2e:a268:0:b0:295:b0cd:523 with SMTP id k8-20020a2ea268000000b00295b0cd0523mr760156ljm.6.1677588440417; Tue, 28 Feb 2023 04:47:20 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:651c:391:b0:295:b860:7804 with SMTP id e17-20020a05651c039100b00295b8607804ls1042314ljp.5.-pod-prod-gmail; Tue, 28 Feb 2023 04:47:18 -0800 (PST) X-Received: by 2002:a2e:bc0b:0:b0:295:ba22:360 with SMTP id b11-20020a2ebc0b000000b00295ba220360mr1229186ljf.42.1677588438757; Tue, 28 Feb 2023 04:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677588438; cv=none; d=google.com; s=arc-20160816; b=OggTq5O4Ff5DhHR7xXrfqxh6PjTccnyflFZNttJxkxxYEX9oCE+B2+CqIPMapBcBbQ fGYEZ2sSJWaE9R3VCaNSABakxGv+3zFfVe+9OAYjbxeuZPAeCh+BNcbpq2A6b73G0IqQ 0gY3rvhRXGBv3d6+zArOx2tcHguKJweEH6TbqFuScNmDxmn2GIiq84SNqDdHGBUMxuRa w5VAbk5OAPMACNUhN7ZdvUgSstMTLLsRZlbXd2yCKLLY+KZKPPStkL3dGeC20YxlQey3 0HSNOM3IeOK6JQ6vKcjkt2F9FUz/WS47KoSGlsd41i6g1UO6g1YwT6cmo6ABHrCaigDf VxAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=MRlRNmK29E7Krxz2Io2uGVSIBlInXCXDp14bivr/+bM=; b=jAxIGCxm8GClazvhsWbhQ9UD3G5ddC/Gqr+9xhe0cAv6r8EO6laC3vyuP5wp3pvyRN sUbbisjZ1OB8Bie2u7GoxhKZJpOJdiOyTiwuFQCT8p/3eD6hq4zaNbPvCwgRmNw7FytU C8pNO0otqrkdStH72/wT/VQKUXdrh7csNfSTIJS+F0wM1VG5JL+hr9nIYRpziQ5XTx83 ugZKZ3JmYQoAw0f9MkyG94wvpHWHy1DrwLzSXuxc11Dai70Pzwv+bs1doNmsv6vDYQW3 DIOY3q3zw9/447YQ74dIFBivkhiIyXKMjYfuKVmx0BcSxn7NhQw26NG1IlmDxX2JpBaq /V1Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id l6-20020a2ea306000000b00295a255ee26si369187lje.6.2023.02.28.04.47.18 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2023 04:47:18 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4PQxw613myz1r1NF; Tue, 28 Feb 2023 13:47:18 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4PQxw60yB9z1qqlR; Tue, 28 Feb 2023 13:47:18 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id 3q1qpAPqOCaZ; Tue, 28 Feb 2023 13:47:17 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Tue, 28 Feb 2023 13:47:17 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 505F745406F2; Tue, 28 Feb 2023 13:47:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 6QJ94rH9l_rh; Tue, 28 Feb 2023 13:47:14 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id B652445411B3; Tue, 28 Feb 2023 13:47:12 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH 3/4] Scripts must send a progress event Date: Tue, 28 Feb 2023 13:47:08 +0100 Message-Id: <20230228124709.2629819-3-sbabic@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230228124709.2629819-1-sbabic@denx.de> References: <20230228124709.2629819-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[1/4] Revert "core/stream_interface.c: increment progress step"
|
expand
|
diff --git a/core/installer.c b/core/installer.c index b97e97a..4ddd8fe 100644 --- a/core/installer.c +++ b/core/installer.c @@ -205,7 +205,9 @@ static int run_prepost_scripts(struct imglist *list, script_fn type) .data = hnd->data }; + swupdate_progress_inc_step(img->fname, hnd->desc); ret = hnd->installer(img, &data); + swupdate_progress_step_completed(); if (ret) return ret; }
Scripts run as step in the update and they must signalize when they have finished. This allows the progress interface to take count of them. Signed-off-by: Stefano Babic <sbabic@denx.de> --- core/installer.c | 2 ++ 1 file changed, 2 insertions(+)