From patchwork Wed Sep 28 18:09:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1683998 Return-Path: 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::439; helo=mail-wr1-x439.google.com; envelope-from=swupdate+bncbcxploxj6ikrb6u32kmqmgqeww44yti@googlegroups.com; receiver=) 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=Z2pFUCEm; dkim-atps=neutral Received: from mail-wr1-x439.google.com (mail-wr1-x439.google.com [IPv6:2a00:1450:4864:20::439]) (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 4Md4KF57Mjz1yqJ for ; Thu, 29 Sep 2022 04:10:08 +1000 (AEST) Received: by mail-wr1-x439.google.com with SMTP id u20-20020adfa194000000b0022cc472d4acsf1164486wru.9 for ; Wed, 28 Sep 2022 11:10:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664388602; cv=pass; d=google.com; s=arc-20160816; b=GJMYYOFHpHF0VghTPfPiKPo97RxhbLW7INQSfHaVW1oSUeGY7z2sPp/psgZMTC1zo+ KKmxUpNwAtEQWL/kFYzWb3tUax81ondqbPb3A2ZNqcXiZOUTCzw9kjcbGHGpjE9ETjM1 9N4O7wrSa6Il+EhL0Eou+1xVUMfvXqxH6MhTwuyEvw5lKAwdRhjqiR7EfQ6b0YbLCI9G bnk0FMpF9O+YRzoB7h+BeYb4KBPv0nsHmTOXUougi6xGTkPNKTRdjcYfBP8sGN+Lfrsq NaitwnBr3kvIP1Wo6D5FEeIK89xCuIfXEAAcA4T2niWDkaGn6zscPF6R8LmxmkuapFRP oVGw== 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=6+Nq4vgIUvQJ6pELrLaqDBuy+sNghJmOOxhnBnMvzoA=; b=B+BxFVkied3KwMkdEdtxPxNHFOI6tVQ2gjC0Of7TfLiRLavVy4lBwND/ikPszx5NN0 9dZViZGph0KK+ryIK80vIg2a6a0o0lwtyj1UOz/lWb+sfvMGP+TwYmgLEwlLMP5uq+4o TrGr6u4Cj0JUtLiEECrR9QcqwlFx4AKRVJYT5+4O6VybubvAw2piAuXDHZcaEj9F9MNf WFbUt05WZI05ZEyFQ32g9JhxNYOVREq1GVyxn18Uxv34AxDu3qRkAvrC5B85AE/99BN0 zFkGG8G3cCCIPiKQktykyEeHrzJiJhSh9C1ixndqCvxJ85hjYbp3oKIWHDWvSPYIFeWo SmEQ== 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; 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:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date; bh=6+Nq4vgIUvQJ6pELrLaqDBuy+sNghJmOOxhnBnMvzoA=; b=Z2pFUCEm2Lvv4RIYwCwSIkmWMT8Okuqy3/wEtsy3t2CoJ1GNsEIPtJgLNsStJoc1qz IA6BdoEweUentaptOlJbD2SxhIA46mIpJmVtox8Lt7Wq+6CrwhTlN9LN/kHMWhdBm6al 3zgt6OOHmFjirPTyTafgDtZs/oPHrB/t4hLRhuuyxSH7uSZxWC0qO39TF+Hn/4xt5U72 0EiMCUL2/opRe38HGxLpljv/tjdevIRbS1Jy/f87vO3icfAKEaSDn8Nj83J7aP9/HuIj oymMlXJDlsEik0BZvEBLOcL+ohyN80r46KIji/TSvplcIGSo/AhsbUajrSbZMO8wSfZa LkEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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 :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date; bh=6+Nq4vgIUvQJ6pELrLaqDBuy+sNghJmOOxhnBnMvzoA=; b=ZuuHKwdh9Cv4orF9YpeKAmio259BD1J9Ddohi0SiecscSXK/Xu8xbodVSl/8yvXS6A 6Wgl64HN+Yv6UjKCBlT55iBL978o/zGUr+DKODivBNfwopvj761+6+Ra0wj4WYz+akVz 0WujsKEHIR8Msn691WPxZWwZFrLfxfY445AB5uQTG7kEsBlbEYSsjUmIQX6i5bZomyMw Jhj0RZxXYmp2os6u/QeYAlDA03STcmIplg2zNk2WCkQIGu61KLscofXXCUmmRtmlZ1kt z4P/8RSWQyfqEZOiIjiMJ4CxmSMin8Iha5G2v3m6wS8FOThcRY8q1A87PZTtDKThMvMG swcg== Sender: swupdate@googlegroups.com X-Gm-Message-State: ACrzQf018teHO+yl/pTM0kD7o+mW7RXpdkzH3/40OIJocP5Io8JqTfjo Wm1IHZgZBK0zu3vNUIMOxys= X-Google-Smtp-Source: AMsMyM4SgRy86ajn0Y3HMFKEFTJuexI+WwqHf+ySBtvA5QIGy9pf4qKjjSYap49xTEK98AaTC2y4Qg== X-Received: by 2002:a5d:6609:0:b0:22a:3965:d5ad with SMTP id n9-20020a5d6609000000b0022a3965d5admr22190206wru.62.1664388602571; Wed, 28 Sep 2022 11:10:02 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:f209:0:b0:225:6559:3374 with SMTP id p9-20020adff209000000b0022565593374ls3657547wro.2.-pod-prod-gmail; Wed, 28 Sep 2022 11:10:01 -0700 (PDT) X-Received: by 2002:a05:6000:1881:b0:22b:262f:ee2a with SMTP id a1-20020a056000188100b0022b262fee2amr21553585wri.432.1664388601367; Wed, 28 Sep 2022 11:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664388601; cv=none; d=google.com; s=arc-20160816; b=CxK8ajWA4b9NKPDONo+th+wjeK3Fv2e0IUG9A15W2/XvC261MGiA5/PGBu2zlKt+k5 HYWw9RScFn/t/ISxxwVt82ZEofhF0rZCvu7B6rKEL2pAVyK0jFZw/1g2ebqPj2eU4bxA 36oj2kGA18MidFNS/cUB7ub6lXTtmjJKTx1VSo4uBNYT7xSyJVCgmY3WLab3Ytkjsjd8 aAo6d3hcQwKJ9PXvIxl3zrvZLVG9XfW6Ny7BSNxExKJzt9C78ny3t0poS2txM1VuCW0J zEykC1XDOlr8ccKndcqeV9wqTN0LiWOIuRKEBiXp+yUR0HFPa3Yncv3yVSC8zuoxEpI8 wBXA== 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=35NeGr1GYqk6tPtaMW8x4JC/NVFbntc1ViqFAtY5bYM=; b=PbrPWdojnzjybmHQ2qoMduIBLJVF10MLiIGr7rbrMbCexNIkadMR5Z6CW1h8NbJiqJ OPpGUoaB/oUrEHv/EcqfpRwE/e/QzDoyfas1ukfP8LNzMfKgre/ZZl6e+XzNWY/n4zpB MwJr5MED/YxHusmL45fRhF4iXYqloDK3i6IzVj5u1s02z81apud0NIDKYJJuTI7A8hxV Pix0ZmxsKikni1X4TrWSFVZucFnaV3YGvP3u56ULj4Z3rbrhuJx/82/Cx9LooIbSvWqq Kg1zbBCBaTMW2aXJGrFzcU2jIVhfVYsXB0JqAHhOi0n62aigdt5FD0wf+DGviB3rCVC3 KgsQ== 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 x15-20020a05600c21cf00b003a5582cf0f0si116557wmj.0.2022.09.28.11.10.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Sep 2022 11:10:01 -0700 (PDT) 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 4Md4K516fBz1r4pv; Wed, 28 Sep 2022 20:10:01 +0200 (CEST) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4Md4K50qZyz1qqlR; Wed, 28 Sep 2022 20:10:01 +0200 (CEST) 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 ZNU0xvtJBv4f; Wed, 28 Sep 2022 20:10:00 +0200 (CEST) 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) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 28 Sep 2022 20:10:00 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 1F4BF4540C1D; Wed, 28 Sep 2022 20:09:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rY2Rkyp6TSzE; Wed, 28 Sep 2022 20:09:56 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id BA59E45405FE; Wed, 28 Sep 2022 20:09:56 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [SWUGenerator][PATCH] Do not set ivt attribute without encrypted Date: Wed, 28 Sep 2022 20:09:55 +0200 Message-Id: <20220928180955.1165508-1-sbabic@denx.de> X-Mailer: git-send-email 2.34.1 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 Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , If an artifact is not encrypted, do not add an ivt attribute. Signed-off-by: Stefano Babic --- swugenerator/generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swugenerator/generator.py b/swugenerator/generator.py index 96064e0..8f8f9c0 100644 --- a/swugenerator/generator.py +++ b/swugenerator/generator.py @@ -111,7 +111,8 @@ class SWUGenerator: entry['filename'] = new.newfilename entry['sha256'] = new.getsha256() - entry['ivt'] = new.ivt + if 'encrypted' in entry: + entry['ivt'] = new.ivt def find_files_in_swdesc(self, first): for n, val in first.items():