[gimp-web/wip/schumaml/download-comments: 2/2] downloads: add support for additional comments, part 2



commit 0dfe89db1cc02aa73959c76b06f07c7fa2667a97
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_common.py                   | 4 ++++
 themes/newgimp/templates/downloads.html | 6 ++++++
 3 files changed, 12 insertions(+), 1 deletion(-)
---
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_common.py b/pelicanconf_common.py
index e8f235b6..96c0bbd1 100644
--- a/pelicanconf_common.py
+++ b/pelicanconf_common.py
@@ -220,6 +220,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
@@ -236,6 +238,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]