From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F18551382C5 for ; Wed, 20 May 2020 03:43:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A578E08E2; Wed, 20 May 2020 03:43:05 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 32E3AE08E2 for ; Wed, 20 May 2020 03:43:05 +0000 (UTC) Received: by mail-pj1-f42.google.com with SMTP id ci23so632320pjb.5 for ; Tue, 19 May 2020 20:43:05 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=e/OcbPmFtN6ZhGVpMehMtftCB22//EW43J6+QCBxMuU=; b=KgFDEOPOs0jesvWJwl2v1vPHGjuwgDVCUIGuCa1Joquz4k/q2bgf/UDPknlRQowAZ+ HBb/+Zp8UmPn19pfKn6t0AWiRPriX7im8twVVM0df4WNBifZu99kePV/k5HIuOWjwHRL I4syvZ8USB8U3Fh2vAtlbOUDq8LlbrhYDRgv4nkqqFOz5nDfHpUqxC2An4G0YbcCcScD F4FyFw7z3xc9c+OwkcU/I/PwtqwUrBqPrHlMdjkgkFy7cI6aTp4aF34Fua1k8JHO4sBC YviBQ65AaWnsTtMT1UHBgfgRQH4K8ghTRL8NM21a4nabiLlFuU5jluEdWEIL+aBWnvMi yr9g== X-Gm-Message-State: AOAM531qtIYXpw9dknEMQnDXX9G2IAkEl+8MhpzVbbFpX/9GhRjycMjA tgsKUXeAuU7F8vGJdCGNHxlrrYmn X-Google-Smtp-Source: ABdhPJzJfMoM7t2C+LtML0yF8UlavA2jMMUsy08E9bp/GUC/zpto0IK1ZWzkWPxoCs4QrQdaW7f4HA== X-Received: by 2002:a17:90a:a111:: with SMTP id s17mr2913224pjp.39.1589946183890; Tue, 19 May 2020 20:43:03 -0700 (PDT) Received: from localhost ([134.134.137.77]) by smtp.gmail.com with ESMTPSA id a85sm750651pfd.181.2020.05.19.20.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 20:43:03 -0700 (PDT) From: Matt Turner To: gentoo-catalyst@lists.gentoo.org Cc: Matt Turner Subject: [gentoo-catalyst] [PATCH 12/21] catalyst: Disallow config file options in spec files Date: Tue, 19 May 2020 20:42:17 -0700 Message-Id: <20200520034226.2870937-12-mattst88@gentoo.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200520034226.2870937-1-mattst88@gentoo.org> References: <20200520034226.2870937-1-mattst88@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 817acc6f-9c86-4fb7-bb4f-95b8fbab6a33 X-Archives-Hash: 98897731f0bcbcbb304426937f219770 Signed-off-by: Matt Turner --- catalyst/support.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/catalyst/support.py b/catalyst/support.py index 0925af47..c4a5c797 100644 --- a/catalyst/support.py +++ b/catalyst/support.py @@ -8,7 +8,6 @@ import time from subprocess import Popen from catalyst import log -from catalyst.defaults import valid_config_file_values BASH_BINARY = "/bin/bash" @@ -211,7 +210,7 @@ def addl_arg_parse(myspec, addlargs, requiredspec, validspec): "helper function to help targets parse additional arguments" messages = [] for x in addlargs.keys(): - if x not in validspec and x not in valid_config_file_values and x not in requiredspec: + if x not in validspec and x not in requiredspec: messages.append("Argument \""+x+"\" not recognized.") else: myspec[x] = addlargs[x] -- 2.26.2