[gimp-web/wip/schumaml/download-comments: 9/9] downloads: add support for additional comments, part 2
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/wip/schumaml/download-comments: 9/9] downloads: add support for additional comments, part 2
- Date: Sun, 26 Jan 2020 13:48:11 +0000 (UTC)
commit ab31e34f9aa50597f22c42d2dc4e294c0ffee659
Author: Michael Schumacher <schumaml gmx de>
Date: Thu Jan 16 22:43:49 2020 +0100
downloads: add support for additional comments, part 2
Add comment to GIMP 2.10.14 DMG Update 1.
Add comment display to macOS downloads page section.
Add support for macOS comments to pelicanconf* files.
Add support for optional comments to all pelicanconf flavors.
Not really happy with the presentation on the downloads page yet,
improvements are welcome.
content/gimp_versions.json | 3 ++-
pelicanconf.local.py | 6 +++++-
pelicanconf.py | 4 ++++
pelicanconf.testing.py | 2 ++
themes/newgimp/templates/downloads.html | 6 ++++++
5 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/content/gimp_versions.json b/content/gimp_versions.json
index 92ea4d33..197929d5 100644
--- a/content/gimp_versions.json
+++ b/content/gimp_versions.json
@@ -15,7 +15,8 @@
"filename": "gimp-2.10.14-x86_64-1.dmg",
"sha512":
"62c3e528be26d038016b1aaa89304ab34e0106adb926d430159c1181fb23611d9761bce40fbebfed67724932028dd845d9c401d7ebab423b19e49d4471d2fa66",
"sha256": "52654d85f894834f6c134c724beff3eddf212a1bda317299314322cfeff97e52",
- "min-support": "macOS 10.9 Mavericks"
+ "min-support": "macOS 10.9 Mavericks",
+ "comment": "GIMP 2.10.14 - Update 1: package current Glib to fix some crashes"
},
{
"filename": "gimp-2.10.14-x86_64.dmg",
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index dd2233b2..2e5cf986 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -176,8 +176,10 @@ if 'STABLE' in GIMP:
elif 'md5' in info['windows'][0]:
WINDOWS_HASH_FUN = 'md5'
WINDOWS_HASH = info['windows'][0][WINDOWS_HASH_FUN]
- if 'min-support' in info['windows'][0]:
+ if 'min-support' in info['windows']:
WINDOWS_MIN_SUPPORT = info['windows'][0]["min-support"]
+ if 'comment' in info['windows'][0]:
+ WINDOWS_COMMENT = info['windows'][0]["comment"]
if 'macos' in info:
try:
MACOS_FILE
@@ -194,6 +196,8 @@ if 'STABLE' in GIMP:
MACOS_HASH = info['macos'][0][MACOS_HASH_FUN]
if 'min-support' in info['macos'][0]:
MACOS_MIN_SUPPORT = info['macos'][0]["min-support"]
+ if 'comment' in info['macos'][0]:
+ MACOS_COMMENT = info['macos'][0]["comment"]
else:
print 'STABLE not defined'
diff --git a/pelicanconf.py b/pelicanconf.py
index dcc04a5f..aa451fd7 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -168,6 +168,8 @@ if 'STABLE' in GIMP:
WINDOWS_HASH = info['windows'][0][WINDOWS_HASH_FUN]
if 'min-support' in info['windows'][0]:
WINDOWS_MIN_SUPPORT = info['windows'][0]["min-support"]
+ if 'comment' in info['windows'][0]:
+ WINDOWS_COMMENT = info['windows'][0]["comment"]
if 'macos' in info:
try:
MACOS_FILE
@@ -184,6 +186,8 @@ if 'STABLE' in GIMP:
MACOS_HASH = info['macos'][0][MACOS_HASH_FUN]
if 'min-support' in info['macos'][0]:
MACOS_MIN_SUPPORT = info['macos'][0]["min-support"]
+ if 'comment' in info['macos'][0]:
+ MACOS_COMMENT = info['macos'][0]["comment"]
else:
print 'STABLE not defined'
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index 1f091bbc..173b28f0 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -184,6 +184,8 @@ if 'STABLE' in GIMP:
MACOS_HASH = info['macos'][0][MACOS_HASH_FUN]
if 'min-support' in info['macos'][0]:
MACOS_MIN_SUPPORT = info['macos'][0]["min-support"]
+ if 'comment' in info['macos'][0]:
+ MACOS_COMMENT = info['macos'][0]["comment"]
else:
print 'STABLE not defined'
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index d08c83b2..a1aaf71a 100644
--- a/themes/newgimp/templates/downloads.html
+++ b/themes/newgimp/templates/downloads.html
@@ -128,6 +128,12 @@
<p>Note: the currently available package provides GIMP {{ MACOS_VER }} and has not yet updated to
the latest version, GIMP {{ GIMP_VERSION }}. We're working on that, please check back later.</p>
{% endif %}
+ {% if MACOS_COMMENT is defined %}
+ <p>
+ <em>Developers' comment:</em> {{ MACOS_COMMENT }}
+ </p>
+ {% endif %}
+
<p>
<span class='win-button' id='osx-torrent'>
<a href="//download.gimp.org/pub/gimp/v{{ MACOS_MAJOR_MINOR_VER }}/osx/{{ MACOS_FILE
}}.torrent">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]