mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Markus Heidelberg <m.heidelberg@cab.de>
To: <ptxdist@pengutronix.de>
Cc: Markus Heidelberg <m.heidelberg@cab.de>
Subject: [ptxdist] [PATCH] ptxd_lib_template: fix "ptxdist newpackage host" with an existing target counterpart
Date: Mon, 4 Mar 2024 08:27:08 +0100	[thread overview]
Message-ID: <20240304072708.50708-1-m.heidelberg@cab.de> (raw)

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 <m.heidelberg@cab.de>
---
 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




             reply	other threads:[~2024-03-04  7:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-04  7:27 Markus Heidelberg [this message]
2024-03-15  4:06 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240304072708.50708-1-m.heidelberg@cab.de \
    --to=m.heidelberg@cab.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox