mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_lib_template: fix "ptxdist newpackage host" with an existing target counterpart
@ 2024-03-04  7:27 Markus Heidelberg
  2024-03-15  4:06 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Heidelberg @ 2024-03-04  7:27 UTC (permalink / raw)
  To: ptxdist; +Cc: Markus Heidelberg

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-15  4:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-04  7:27 [ptxdist] [PATCH] ptxd_lib_template: fix "ptxdist newpackage host" with an existing target counterpart Markus Heidelberg
2024-03-15  4:06 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox