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 E020D1382C5 for ; Wed, 20 May 2020 03:43:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28235E091D; Wed, 20 May 2020 03:43:20 +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 208CDE091D for ; Wed, 20 May 2020 03:43:20 +0000 (UTC) Received: by mail-pj1-f42.google.com with SMTP id ci21so622742pjb.3 for ; Tue, 19 May 2020 20:43:20 -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=iQCK0XJVMGnebeimvy7LOgfuiOeDhcE1QZVujvT+gyE=; b=FQsZ3pnJhJ3eN0WjwQYKUW4iVGpWNilrdroSs+1u7geebMhAI7rLxxgU7jGxLCZASx q2mOGRo6kXpT6S7gvkKQEt+fe9jvRdnkXzJeaSjS17ZUu4qyq8MabM9pJaoN1Ryep8h0 9nDQ1j53p0PtYenWYUEd0vaFyvwmEIHwEC0fNT6mMv14gDR4MGGLgEPnOoG2jzMnkrbm u4Qf2JbUeTbDauCsv36do+OknI/E45LlgJ7uRQMtsRY8/GnHD4i6j/2xYfsPakkqWsju fnZDcHwpt/FL70wZYb345/5kTBaJu/R4xkuvODeJZ83mkatL2+jgzKzdlY07kafHcCcK 54Jg== X-Gm-Message-State: AOAM530JROR9e4pJ3cXRVYRzO7EJrYJbNiamq1UV6Z60PYPNlB1WhadP 7EsGv7FIBiDhbybj6bH9H+ibvGO6 X-Google-Smtp-Source: ABdhPJwsXrhhKu44+W4Iq36JXi4SRSWmEA1Ib6sI5LbwP1Yw4UOGeOz3Q2/WKZxFala0/CBs2YSb1Q== X-Received: by 2002:a17:902:b289:: with SMTP id u9mr2688056plr.138.1589946198798; Tue, 19 May 2020 20:43:18 -0700 (PDT) Received: from localhost ([134.134.137.77]) by smtp.gmail.com with ESMTPSA id gx21sm723265pjb.47.2020.05.19.20.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 20:43:18 -0700 (PDT) From: Matt Turner To: gentoo-catalyst@lists.gentoo.org Cc: Matt Turner Subject: [gentoo-catalyst] [PATCH 18/21] catalyst: Support emitting int/float envars Date: Tue, 19 May 2020 20:42:23 -0700 Message-Id: <20200520034226.2870937-18-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: 4fac6adc-3192-4360-ab14-3073599bcc4a X-Archives-Hash: 7d329e1308265a3052b70e9dd91b1ba5 Signed-off-by: Matt Turner --- catalyst/base/stagebase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 645a9f61..5a8cd1df 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -1283,6 +1283,8 @@ class StageBase(TargetBase, ClearBase, GenBase): elif isinstance(self.settings[x], bool): if self.settings[x]: self.env[varname] = "true" + elif isinstance(self.settings[x], (int, float)): + self.env[varname] = str(self.settings[x]) elif isinstance(self.settings[x], dict): if x in ['compress_definitions', 'decompress_definitions']: continue -- 2.26.2