aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2021-07-16 03:24:38 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-07-16 03:24:38 +0200
commita9312708f06ef8ab0ad91d82708effa0c61c5af0 (patch)
treefcbb6f03ce46e35ae070ec9dadd587e377d6e39e
parent_includes/downloads/ppc.html: add new ppc stages (diff)
downloadwww-a9312708f06ef8ab0ad91d82708effa0c61c5af0.tar.gz
www-a9312708f06ef8ab0ad91d82708effa0c61c5af0.tar.bz2
www-a9312708f06ef8ab0ad91d82708effa0c61c5af0.zip
downloads: allow more than one "minimal" iso per arch
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--_includes/downloads/ppc.html4
-rw-r--r--_includes/downloads/sparc.html2
-rw-r--r--_plugins/downloads.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/_includes/downloads/ppc.html b/_includes/downloads/ppc.html
index 1e96638..eeed576 100644
--- a/_includes/downloads/ppc.html
+++ b/_includes/downloads/ppc.html
@@ -1,8 +1,8 @@
<div class="col-xs-12 col-md-6">
<h4>Boot media</h4>
<div class="list-group">
- {% include partials/download-link.html type="iso" arch="ppc" id="powerpc-minimal" title="PPC/PPC64 Minimal Installation CD" %}
- {% include partials/download-link.html type="iso" arch="ppc" id="ppc64le-minimal" title="PPC64LE Minimal Installation CD" %}
+ {% include partials/download-link.html type="iso" arch="ppc" id="install-powerpc-minimal" title="PPC/PPC64 Minimal Installation CD" %}
+ {% include partials/download-link.html type="iso" arch="ppc" id="install-ppc64le-minimal" title="PPC64LE Minimal Installation CD" %}
</div>
<h4>Stage archives</h4>
<div class="list-group">
diff --git a/_includes/downloads/sparc.html b/_includes/downloads/sparc.html
index 52d7794..3286e4f 100644
--- a/_includes/downloads/sparc.html
+++ b/_includes/downloads/sparc.html
@@ -1,7 +1,7 @@
<div class="col-xs-12 col-md-6">
<h4>Boot media</h4>
<div class="list-group">
- {% include partials/download-link.html type="iso" arch="sparc" id="minimal" title="Minimal Installation CD" %}
+ {% include partials/download-link.html type="iso" arch="sparc" id="install-sparc64-minimal" title="Minimal Installation CD" %}
</div>
<h4>Stage archives</h4>
<div class="list-group">
diff --git a/_plugins/downloads.rb b/_plugins/downloads.rb
index 4f88f4a..75dcafe 100644
--- a/_plugins/downloads.rb
+++ b/_plugins/downloads.rb
@@ -22,7 +22,7 @@ module Gentoo
if date
site.data['downloads'][arch]['iso'] ||= {}
- if $2.include? 'minimal'
+ if $2.include? ('install-'+arch+'-minimal')
site.data['downloads'][arch]['iso']['minimal'] = { 'date' => date, 'filename' => '%s/%s' % [$1, $2], 'size' => $3 }
else
subdir, filename, size = $1, $2, $3