From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 04 Mar 2024 08:28:03 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rh2jz-007zbJ-13 for lore@lore.pengutronix.de; Mon, 04 Mar 2024 08:28:03 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rh2jz-0007oI-3y; Mon, 04 Mar 2024 08:28:03 +0100 Received: from mail.cab.de ([213.144.1.196]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rh2jX-0007o9-6O for ptxdist@pengutronix.de; Mon, 04 Mar 2024 08:27:35 +0100 X-cab-MailScanner-Watermark: 1710142052.92624@emmMo0CsyUWhygrZkLP6zQ X-cab-MailScanner-From: m.heidelberg@cab.de X-cab-MailScanner: Found to be clean X-cab-MailScanner-ID: 87E7C120118.AB40B X-cab-MailScanner-Information: Please contact it@cab.de for more information Received: from Adranos.cab.de (unknown [10.10.1.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cab.de (Postfix) with ESMTPS id 87E7C120118 for ; Mon, 4 Mar 2024 08:27:29 +0100 (CET) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.cab.de 87E7C120118 Authentication-Results: vulcanos.cab.de; dmarc=none (p=none dis=none) header.from=cab.de Authentication-Results: vulcanos.cab.de; spf=none smtp.mailfrom=M.Heidelberg@cab.de DKIM-Filter: OpenDKIM Filter v2.11.0 mail.cab.de 87E7C120118 Received: from KAN23-025 (10.100.0.8) by Adranos.cab.de (10.10.1.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 4 Mar 2024 08:27:28 +0100 From: Markus Heidelberg To: Date: Mon, 4 Mar 2024 08:27:08 +0100 Message-ID: <20240304072708.50708-1-m.heidelberg@cab.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.100.0.8] X-ClientProxiedBy: Adranos.cab.de (10.10.1.54) To Adranos.cab.de (10.10.1.54) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] ptxd_lib_template: fix "ptxdist newpackage host" with an existing target counterpart X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Markus Heidelberg Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false In that case, "prompt" and "help" lines were added to the .in file and "SECTION" was set to "project_specific" instead of "hosttools_noprompt". Signed-off-by: Markus Heidelberg --- scripts/lib/ptxd_lib_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh index f8f188e14..9d6c6fba7 100644 --- a/scripts/lib/ptxd_lib_template.sh +++ b/scripts/lib/ptxd_lib_template.sh @@ -107,7 +107,7 @@ export -f ptxd_template_read_author ptxd_template_read_section() { local section_name - if [ "${action}" = "host" ]; then + if [ "${action}" = "host" -o "${action}" = "host-existing-target" ]; then section_name="${1:-hosttools_noprompt}" else section_name="${1:-project_specific}" -- 2.34.1