From 2ed525a1f655f3d1826d8e0e687d2b0a1ee8c14e Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 1 Oct 2025 22:39:00 +0200 Subject: [PATCH 1/8] Make debian package setup example more self explained --- templates/package/content/debian.tmpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/package/content/debian.tmpl b/templates/package/content/debian.tmpl index 73b82578357fd..4c153c251d45e 100644 --- a/templates/package/content/debian.tmpl +++ b/templates/package/content/debian.tmpl @@ -4,8 +4,14 @@
sudo curl {{ if gt (len .Distributions) 1 }}# please select one:
+distribution="" # {{StringUtils.Join .Distributions ", "}}
+
+{{end}}{{ if gt (len .Components) 1 }}# please select one:
+component="" # {{StringUtils.Join .Components ", "}}
+
+{{end}}sudo curl 
 				{{ctx.Locale.Tr "packages.debian.registry.info"}}
 			{{ if gt (len .Distributions) 1 }}# please select one:
-distribution="" # {{StringUtils.Join .Distributions ", "}}
+DISTRIBUTION="" # {{StringUtils.Join .Distributions ", "}}
 
 {{end}}{{ if gt (len .Components) 1 }}# please select one:
 component="" # {{StringUtils.Join .Components ", "}}
 
 {{end}}sudo curl {{ctx.Locale.Tr "packages.debian.registry.info"}}
{{ctx.Locale.Tr "packages.debian.registry.info"}}
{{ if gt (len .Distributions) 1 }}# please select one:
-DISTRIBUTION="" # {{StringUtils.Join .Distributions ", "}}
-
-{{end}}{{ if gt (len .Components) 1 }}# please select one:
-COMPONENT="" # {{StringUtils.Join .Components ", "}}
+        {{ if gt (len .Distributions) 1 }}DISTRIBUTION="" # one of {{StringUtils.Join .Distributions ", "}}{{end}}
+          {{ if gt (len .Components) 1 }}COMPONENT="" # one of {{StringUtils.Join .Components ", "}}
 
 {{end}}sudo curl 
Date: Mon, 6 Oct 2025 18:46:30 +0200
Subject: [PATCH 5/8] make fmt
---
 templates/package/content/debian.tmpl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/templates/package/content/debian.tmpl b/templates/package/content/debian.tmpl
index 8f1f596874411..a322dec35eea8 100644
--- a/templates/package/content/debian.tmpl
+++ b/templates/package/content/debian.tmpl
@@ -4,11 +4,11 @@
 		
 			
 				
-        {{ if gt (len .Distributions) 1 }}DISTRIBUTION="" # one of {{StringUtils.Join .Distributions ", "}}{{end}}
-          {{ if gt (len .Components) 1 }}COMPONENT="" # one of {{StringUtils.Join .Components ", "}}
+        {{if gt (len .Distributions) 1}}DISTRIBUTION="" # one of {{StringUtils.Join .Distributions ", "}}{{end}}
+          {{if gt (len .Components) 1}}COMPONENT="" # one of {{StringUtils.Join .Components ", "}}
 
 {{end}}sudo curl 
 				{{ctx.Locale.Tr "packages.debian.registry.info"}}
 			
From 6714e6edfdfa70a5b6babf4c338d810566a07802 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 7 Oct 2025 09:17:36 +0200
Subject: [PATCH 6/8] With translation
---
 options/locale/locale_en-US.ini       | 2 +-
 templates/package/content/debian.tmpl | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 03017ce6746df..99d7ce3d4aefe 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -3685,7 +3685,7 @@ container.labels.value = Value
 cran.registry = Set up this registry in your Rprofile.site file:
 cran.install = To install the package, run the following command:
 debian.registry = Set up this registry from the command line:
-debian.registry.info = Choose $distribution and $component from the list below.
+debian.registry.one_of_vars = Choose one of:
 debian.install = To install the package, run the following command:
 debian.repository = Repository Info
 debian.repository.distributions = Distributions
diff --git a/templates/package/content/debian.tmpl b/templates/package/content/debian.tmpl
index a322dec35eea8..3b0244ccacdf5 100644
--- a/templates/package/content/debian.tmpl
+++ b/templates/package/content/debian.tmpl
@@ -4,13 +4,11 @@
 		
 			
 				
-        {{if gt (len .Distributions) 1}}DISTRIBUTION="" # one of {{StringUtils.Join .Distributions ", "}}{{end}}
-          {{if gt (len .Components) 1}}COMPONENT="" # one of {{StringUtils.Join .Components ", "}}
-
+        {{if gt (len .Distributions) 1}}DISTRIBUTION="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Distributions ", "}}
+{{end}}{{if gt (len .Components) 1}}COMPONENT="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Components ", "}}
 {{end}}sudo curl 
-				{{ctx.Locale.Tr "packages.debian.registry.info"}}
 			
 			
 				
From 56a8afc14c6be5b06aad21f486cbb6512012fea3 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 7 Oct 2025 09:18:28 +0200
Subject: [PATCH 7/8] did not syntaxhiglight so rm it again
---
 templates/package/content/debian.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/package/content/debian.tmpl b/templates/package/content/debian.tmpl
index 3b0244ccacdf5..618f6b65fde04 100644
--- a/templates/package/content/debian.tmpl
+++ b/templates/package/content/debian.tmpl
@@ -4,7 +4,7 @@
 		
 			
 				
-        {{if gt (len .Distributions) 1}}DISTRIBUTION="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Distributions ", "}}
+        {{if gt (len .Distributions) 1}}DISTRIBUTION="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Distributions ", "}}
 {{end}}{{if gt (len .Components) 1}}COMPONENT="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Components ", "}}
 {{end}}sudo curl {{if gt (len .Distributions) 1}}DISTRIBUTION="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Distributions ", "}}
+				{{if gt (len .Distributions) 1}}DISTRIBUTION="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Distributions ", "}}
 {{end}}{{if gt (len .Components) 1}}COMPONENT="" # {{ctx.Locale.Tr "packages.debian.registry.one_of_vars"}} {{StringUtils.Join .Components ", "}}
+{{end}}{{if or (gt (len .Distributions) 1) (gt (len .Components) 1)}}
 {{end}}sudo curl