Message ID | 20201224141723.2780266-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRB6OFSL7QKGQEKUFC6VI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::137; helo=mail-lf1-x137.google.com; envelope-from=swupdate+bncbcxploxj6ikrb6ofsl7qkgqekufc6vi@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=cuy4sVOh; dkim-atps=neutral Received: from mail-lf1-x137.google.com (mail-lf1-x137.google.com [IPv6:2a00:1450:4864:20::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D1sbf1lTSz9sTK for <incoming@patchwork.ozlabs.org>; Fri, 25 Dec 2020 01:17:34 +1100 (AEDT) Received: by mail-lf1-x137.google.com with SMTP id a10sf1556093lfg.13 for <incoming@patchwork.ozlabs.org>; Thu, 24 Dec 2020 06:17:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608819450; cv=pass; d=google.com; s=arc-20160816; b=grM+x6Kv3C4+pGrJUz2GfmXj0sla2jcvyFcVHyE44f8v5AbTE6hYAWsoH24pdhF2cR 7941+Cy8X3N7BS78CpNUK2lUaNuOXETqSUfof1B+3towMjFg3kVHnCWHXYFfHdua3vrs yvcl778rAeCcxgeuJCd7fGhsH0Q4apKOCXajoh/0RUAub3nN11LwC43QmenMLWBctoEm hgsDZO6Ju0WTX+CMtCGqtRWhi5sQ6qqJKO++MSF0ZMP9E2nbFcYQozO3t6lnb5x3r/W9 jJPuGD8tSq1eYBfNWPHO6SGbXtmaEMe0ewJMzquST42ZhyXT7u7UvXrJ1nYHW75RCIID swXw== 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:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=FiYxMhacJbn72XN4+9zx00TkVI8Bjr721FFy59pmaWQ=; b=pS6Uk5768uxjcOyGU6Wkw1wiicho5LAO70W8a8vYR28x182owcC8OWV6oWkCt9diet nv5dBt0V4AkiSKH6p+3cb2+zN06USgIjqSAEz0bpbZ3mzqt2sGgB6Y4C66ztF9guoX9n Q4Mv0i0K5bsst0MADe8gy+7EulTqeKD5q/PFJ2hpuTQIlzT+aMsanNws2bHkDk84hr2v tpW4sjQgPaUpVRNoJczZwjhRNF0M+RjFyKaIHodsxl20q5P1Y54f4tTFVF4bQ2vCvpyv GPbtoH4XT+E8gusy2Bb1Ifxo5h41C7A2yzX/fVmZhOGrE6RgHQvdJI8zX93l8ls3+Vuw EwAQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=FiYxMhacJbn72XN4+9zx00TkVI8Bjr721FFy59pmaWQ=; b=cuy4sVOhtQGWx6YGH29fplMVUAHcovXxGa0dV47YxVSNwsyJ87Ag2qWDN1GHZD+sUp ajWpEtkg/tGngjWh2nfhM4OJ1/RxzEN0xkJxNaXC/ZCaIBhq52806/bIZzVYvVz9akvx XeSf2DvPNfMP9wQWVgzbU0Y8q5XbADJzSCnGe1ND2wXJCbA/gM/ilGbKj23q2TFB60aT ZRBFkn5FUE4DqYl/sFAQdUEN+c/Qmg0ySvuRfVqr74x5Nfro4dcUYVIZEgAsE4e2l2vE cVQ2p3bS17FxmvlTIVWvOdYrf+SisARF66sNOPM0D/YkkjzsMxpDCLqBpjPf0GaCwrXk xxwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=FiYxMhacJbn72XN4+9zx00TkVI8Bjr721FFy59pmaWQ=; b=koCYMX/UCH1+TBjPrZwltaNuWfJdWqtmPjAJTCQQiLgowYoh66IghlDSC7KD/AcuvK pDjBUnHIQhkSOkgr4drxLzmjOPA1LH8kMXNkcpp7OPcclElNmLEiedIp/Hqgn7PmDpUN qUdzW9EzJT/NoKDy5JDwXfzkBijCXPDColsOdl0lzk9/Fo+xg2Ht11LPZuDGdwGWTD2S R41qBfKtPBBOlIGeqQku4m6V6Qhxn6sscVw8VUjQk8bYB1L0NEEz/oNBtcoqYU4Qbsl4 HhVji7Q+YqX0HjjUiWOkKoyGUI4DKEONu5tGWNuGwr0gUKnQs1Jg9Lw5G2FSstDTC3ge yf9A== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM530Xa8ymp37tbciO4TcYAy9qcAHTJJbhzIDySUvrDV5B8BLuAVLu Egp+ET6fMFt/KL3KJZ/CDXo= X-Google-Smtp-Source: ABdhPJwJ9xT7m1G4KdLTmgDyXckKrFbx792ucD//n34jAs8LCmtg0eTUL6K6K5oNLV7fzSba1B+O8A== X-Received: by 2002:a2e:740a:: with SMTP id p10mr14836063ljc.409.1608819450068; Thu, 24 Dec 2020 06:17:30 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:c1cd:: with SMTP id r196ls6197564lff.1.gmail; Thu, 24 Dec 2020 06:17:29 -0800 (PST) X-Received: by 2002:a05:6512:1090:: with SMTP id j16mr11976389lfg.641.1608819449030; Thu, 24 Dec 2020 06:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608819449; cv=none; d=google.com; s=arc-20160816; b=RKXM13qTHfXI05RzZ16tiliL9WpR7SdFn+lvBq8OsOdo+Xyc2ZhE2uAoZznz31SFJd WyzApsYFjXxSF+YGAVRzqXCo/S0nHFMouA3YieNk5GBLCBgyHBek1vOOgJagA6VVoU3R mh1NDThag5fUUA1NMmBkWHdmB0l/OgoJ4VBGdrAM0cwO/SIZjLfaXDVZEyZHdVrWqSEz FPd2nFrNUPb3T5aErqkAIOE4sdEUnpaKAsBNfghCmuBUOdBCVn8OCEoeNXzMecxeBH9s CWngzjlxcX8CvYOa0n3GF93zpbAIjaR7bPrDY3jxQWuAdRbfQr1KpcG1jEvnQC2DEObd JxCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=ZZIxP9Spn7zz8ItXfylbUcdUSxPoveqpRxY/X4wqdtM=; b=kz9kQWJFRhfr5dx6pm/bccA+GhYR674VpPrDP52mDcW41iiAGTBq/pSJU8Ssn5kK7h x+QBOPHZjDLCrFSa3RfflogS0xkZbKelcWwniffJSk8OpCAi+RXYLxNwCpb9hjTSh0Hj IJhYgTdmT1lEdlmG6Kb2JrR49GZat7ybFEA4rJHKYljj6ZGG93cKAbCLmv6e43q3+hqP tpiIrgX+uVeyG4OWJmQKQN7kcagQaqeMJ/8qnZKj8y5TFYYTgLfKr/gi7vuSY3EtOr18 /0u6DqWVT2Triv8PbtfRYh08ndrRdAo95Wja01MBA4dgk7b4ch2hYrkKJRgfL0ztaXkL lWRg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id h21si1128304ljj.6.2020.12.24.06.17.28 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Dec 2020 06:17:28 -0800 (PST) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4D1sbX2xpjz1rvBS; Thu, 24 Dec 2020 15:17:28 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4D1sbX2mGDz1tYVx; Thu, 24 Dec 2020 15:17:28 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id KF8Tn4OFntYL; Thu, 24 Dec 2020 15:17:27 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Thu, 24 Dec 2020 15:17:27 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 672164540644; Thu, 24 Dec 2020 15:17:27 +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 iGmjnklgRNOR; Thu, 24 Dec 2020 15:17:24 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id C239445401BD; Thu, 24 Dec 2020 15:17:24 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH] Drop handling of exit status when install from file Date: Thu, 24 Dec 2020 15:17:23 +0100 Message-Id: <20201224141723.2780266-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for 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 |
Drop handling of exit status when install from file
|
expand
|
diff --git a/core/swupdate.c b/core/swupdate.c index 1987063..4f008e0 100644 --- a/core/swupdate.c +++ b/core/swupdate.c @@ -866,19 +866,6 @@ int main(int argc, char **argv) if (opt_i) { result = install_from_file(fname, opt_c); - switch (result) { - case EXIT_FAILURE: - if (!swcfg.globals.dry_run && swcfg.bootloader_transaction_marker) { - bootloader_env_set(BOOTVAR_TRANSACTION, get_state_string(STATE_FAILED)); - } - break; - case EXIT_SUCCESS: - notify(SUCCESS, 0, INFOLEVEL, NULL); - if (postupdate(&swcfg, NULL) != 0) { - ERROR("Post-update command execution failed."); - } - break; - } cleanup_files(&swcfg); }
It is not required anymore to handle the result of the update via local file after merging the into the generic path. Signed-off-by: Stefano Babic <sbabic@denx.de> --- core/swupdate.c | 13 ------------- 1 file changed, 13 deletions(-)