From: Frank Lichtenheld
Date: Sat, 2 Jun 2007 21:02:52 +0000 (+0200)
Subject: templates/html/download.tmpl: Fix message displayed for armel packages
X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=8b6da1ebd2a201a7b98f8a9696b928e1fc514bd5;p=deb%2Fpackages.git
templates/html/download.tmpl: Fix message displayed for armel packages
Don't assume anymore that a non-Debian archive can't contain more than
one arch.
---
diff --git a/templates/config/mirrors.tmpl b/templates/config/mirrors.tmpl
index 4457112..4dbb61a 100644
--- a/templates/config/mirrors.tmpl
+++ b/templates/config/mirrors.tmpl
@@ -121,8 +121,10 @@ mirrors = {
amd64 => {
unofficial_port => {
- url_name => 'amd64',
- name => 'AMD64',
+ amd64 => {
+ url_name => 'amd64',
+ name => 'AMD64',
+ }
},
europa => [
"amd64.debian.net/debian",
@@ -142,8 +144,18 @@ mirrors = {
gnuab => {
unofficial_port => {
- url_name => 'kfreebsd-gnu',
- name => 'GNU/kFreeBSD',
+ 'kfreebsd-amd64' => {
+ url_name => 'kfreebsd-gnu',
+ name => 'GNU/kFreeBSD',
+ },
+ 'kfreebsd-i386' => {
+ url_name => 'kfreebsd-gnu',
+ name => 'GNU/kFreeBSD',
+ },
+ armel => {
+ url => 'http://www.debonaras.org/',
+ name => 'armel',
+ },
},
north_america => [
"www.gtlib.gatech.edu/pub/gnuab/debian",
diff --git a/templates/html/download.tmpl b/templates/html/download.tmpl
index e30fa1d..e08aff2 100644
--- a/templates/html/download.tmpl
+++ b/templates/html/download.tmpl
@@ -92,10 +92,13 @@ please see our complete mirror list.
[% END %]
[% IF a.unofficial_port %]
-[% SET port = a.unofficial_port %]
+[% SET port = a.unofficial_port.$architecture %]
+[% IF port.url_name;
+ SET port.url = ports_url _ port.url_name _ '/';
+ END -%]
Note that [% port.name %] is not officially included in the [% organisation %] archive yet,
but the [% port.name %] porter group keeps their archive in sync with the official archive as close as possible.
-See the [% port.name %] ports page for current information.
+See the [% port.name %] ports page for current information.
[% END %]
Note that in some browsers you will need to tell your browser you want the file saved to a file.