From patchwork Tue Nov 24 17:14:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 1405732 X-Patchwork-Delegate: sjg@chromium.org Return-Path: 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=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=vrull-eu.20150623.gappssmtp.com header.i=@vrull-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=OwTn67cx; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Cgb5n2yzdz9s0b for ; Wed, 25 Nov 2020 07:21:42 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B0371825EC; Tue, 24 Nov 2020 21:21:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=vrull-eu.20150623.gappssmtp.com header.i=@vrull-eu.20150623.gappssmtp.com header.b="OwTn67cx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 992F7825EC; Tue, 24 Nov 2020 18:15:21 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 11DB8825D0 for ; Tue, 24 Nov 2020 18:15:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philipp.tomsich@vrull.eu Received: by mail-lj1-x243.google.com with SMTP id y16so22927143ljk.1 for ; Tue, 24 Nov 2020 09:15:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gu8CWPxbbx+n74m0qusuVLRX3OkEusEnQUVJKJhlgrk=; b=OwTn67cxc5hLPRKuHP4dkHGRFttR9aMzpYxyw0BHWWSNKkplHI7uYFIcAGrSygLqGm sGLOSbcJ1OBA+riP+kAxRqkDC8o06rM4tymJEhSN+CYdAjccV6m5JMUDqjZTSEMEgkNK Z8KsmGYuAfilGKnzpFNtA3uxb7U9BpOijtMzCNYjHjdYaEfdf9D0JZN8QGrJ3txZOZtT LGLE09odHJgawMrJBWEA8Kf6bExR1RQza5Zu6L0jjpxTswwTGS5718S/iLngoWHxIK4g t/H8B9QB48mmJhyZXgfezaDknL0XRbBmBUV8cIiz4GlBD5vVZSc+HmNCUbJ6pS1sNEgg iR9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gu8CWPxbbx+n74m0qusuVLRX3OkEusEnQUVJKJhlgrk=; b=eFQpYZNG3OzE0Ys7bcw0KqJy/kP/jure9l36Mg7dH2ks8xKuZ7wrTuiM6R7FU9FGms uOgaWMo2ut9eccQVV2kKwj1cqvtp53e6uE9HJIWIDCbmyus3VGukkv86fIoFwKzrKEM5 /xYDjsTWu+FHJ4+PLAmbrNpVr2tX3D/JOn0ix/PlnRf0llTqzrOvHpc+fbqeZpaoa+CK NfSEkF3yjusJ0KoPSyoBpAqvtaLb59nypBlsdRB0njVUNNAYk37Kl/K15NzLbAKJCobt pD28zXS+dvzQHTxT0tISvv1EHBabIB//FNtdxDHfZOXQq0OmoQv0fTw6Idr/TFsnk3gN CL4w== X-Gm-Message-State: AOAM532k0QbP0gccEi48qbnNJjEfYxFzD9iF8JIJiblFxrh6RnKHmN79 TIgIU58nSqlB3HEzfPd5Be0glA0InnqV1+Cj X-Google-Smtp-Source: ABdhPJx1VT8HWs7GBaKYfkGhqixwcczcdmVvZ8IH8+07LeCHfHHXLoJetu4Z8XiKKv9cRVO0+ySzgA== X-Received: by 2002:a2e:8745:: with SMTP id q5mr2308088ljj.347.1606238114031; Tue, 24 Nov 2020 09:15:14 -0800 (PST) Received: from centos7.localdomain (static.214.61.181.135.clients.your-server.de. [135.181.61.214]) by smtp.gmail.com with ESMTPSA id x24sm393200ljj.112.2020.11.24.09.15.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Nov 2020 09:15:13 -0800 (PST) From: Philipp Tomsich To: u-boot@lists.denx.de Cc: Simon Glass , Philipp Tomsich Subject: [PATCH 3/3] patman: fix project-defaults not propagating into parsers Date: Tue, 24 Nov 2020 18:14:54 +0100 Message-Id: <1606238094-28940-3-git-send-email-philipp.tomsich@vrull.eu> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1606238094-28940-1-git-send-email-philipp.tomsich@vrull.eu> References: <1606238094-28940-1-git-send-email-philipp.tomsich@vrull.eu> X-Mailman-Approved-At: Tue, 24 Nov 2020 21:21:28 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Project defaults (e.g. for linux and gcc) do not propagate into the subparsers. As both the processing of tags (e.g. in the defaults for the linux project) and supressing the signoff (in the defaults for the gcc project) are settings from subparsers, these would still require an explicit commandline option mirroring the (ignored) default. This change ensures that defaults are updated in all parsers. Signed-off-by: Philipp Tomsich --- tools/patman/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/patman/settings.py b/tools/patman/settings.py index bb3f868..dc57b2f 100644 --- a/tools/patman/settings.py +++ b/tools/patman/settings.py @@ -266,7 +266,8 @@ def _UpdateDefaults(main_parser, config): print("WARNING: Unknown setting %s" % name) # Set all the defaults (this propagates through all subparsers) - main_parser.set_defaults(**defaults) + for parser in parsers: + parser.set_defaults(**defaults) def _ReadAliasFile(fname): """Read in the U-Boot git alias file if it exists.