]> git.deb.at Git - deb/packages.git/commitdiff
templates/html/download.tmpl: Fix message displayed for armel packages
authorFrank Lichtenheld <Frank Lichtenheld frank@lichtenheld.de>
Sat, 2 Jun 2007 21:02:52 +0000 (23:02 +0200)
committerFrank Lichtenheld <Frank Lichtenheld frank@lichtenheld.de>
Sat, 2 Jun 2007 21:02:52 +0000 (23:02 +0200)
Don't assume anymore that a non-Debian archive can't contain more than
one arch.

templates/config/mirrors.tmpl
templates/html/download.tmpl

index 4457112ae87ab4e67d0b0b1abf11db6479007d3a..4dbb61a99f4ac00badf81ddd02013a80345e5ed8 100644 (file)
@@ -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",
index e30fa1dd30b1b2550ac38fc4807689311ac4092c..e08aff21b00be974e416b4f49615242f3cd84e25 100644 (file)
@@ -92,10 +92,13 @@ please see our <a href="[% a.mirror_list %]">complete mirror list</a>.</p>
 [% 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 -%]
 <p style="clear:both">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 <a href="[% ports_url _ port.url_name _ '/' %]">[% port.name %] ports page</a> for current information.</p>
+See the <a href="[% port.url %]">[% port.name %] ports page</a> for current information.</p>
 [% END %]
 
 <p>Note that in some browsers you will need to tell your browser you want the file saved to a file.