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



commit 6249c7322161cfaab584b2d4827f76039d63d6cd
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                    | 4 ++++
 pelicanconf.py                          | 4 ++++
 pelicanconf.testing.py                  | 2 ++
 themes/newgimp/templates/downloads.html | 6 ++++++
 5 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/content/gimp_versions.json b/content/gimp_versions.json
index d10bf345..08a7b6ed 100644
--- a/content/gimp_versions.json
+++ b/content/gimp_versions.json
@@ -12,7 +12,8 @@
                 "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"
                  },
                 "gimp-2.10.14-x86_64.dmg": {
                         "sha512": 
"9ea67ddc126431d7bec2bf094725c3818c8091fed531f71ff8c322d378c32df0c940f759b23df69139c45aa5b38455b34e2c09d4f6252c8d1a698016a350a952",
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index b5dddd8d..3cb351c4 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -177,6 +177,8 @@ if 'STABLE' in GIMP:
                 WINDOWS_HASH = info['windows'].values()[0][WINDOWS_HASH_FUN]
                 if 'min-support' in info['windows'].values()[0]:
                     WINDOWS_MIN_SUPPORT = info['windows'].values()[0]["min-support"]
+                if 'comment' in info['windows'].values()[0]:
+                    WINDOWS_COMMENT = info['windows'].values()[0]["comment"]
         if 'macos' in info:
             try:
                 MACOS_FILE
@@ -193,6 +195,8 @@ if 'STABLE' in GIMP:
                 MACOS_HASH = info['macos'].values()[0][MACOS_HASH_FUN]
                 if 'min-support' in info['macos'].values()[0]:
                     MACOS_MIN_SUPPORT = info['macos'].values()[0]["min-support"]
+                if 'comment' in info['macos'].values()[0]:
+                    MACOS_COMMENT = info['macos'].values()[0]["comment"]
 else:
     print 'STABLE not defined'
 
diff --git a/pelicanconf.py b/pelicanconf.py
index 1b21037c..7a74fc56 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -164,6 +164,8 @@ if 'STABLE' in GIMP:
                 WINDOWS_HASH = info['windows'].values()[0][WINDOWS_HASH_FUN]
                 if 'min-support' in info['windows'].values()[0]:
                     WINDOWS_MIN_SUPPORT = info['windows'].values()[0]["min-support"]
+                if 'comment' in info['windows'].values()[0]:
+                    WINDOWS_COMMENT = info['windows'].values()[0]["comment"]
         if 'macos' in info:
             try:
                 MACOS_FILE
@@ -180,6 +182,8 @@ if 'STABLE' in GIMP:
                 MACOS_HASH = info['macos'].values()[0][MACOS_HASH_FUN]
                 if 'min-support' in info['macos'].values()[0]:
                     MACOS_MIN_SUPPORT = info['macos'].values()[0]["min-support"]
+                if 'comment' in info['macos'].values()[0]:
+                    MACOS_COMMENT = info['macos'].values()[0]["comment"]
 else:
     print 'STABLE not defined'
 
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index 8892b6fc..40584a03 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -182,6 +182,8 @@ if 'STABLE' in GIMP:
                 MACOS_HASH = info['macos'].values()[0][MACOS_HASH_FUN]
                 if 'min-support' in info['macos'].values()[0]:
                     MACOS_MIN_SUPPORT = info['macos'].values()[0]["min-support"]
+                if 'comment' in info['macos'].values()[0]:
+                    MACOS_COMMENT = info['macos'].values()[0]["comment"]
 else:
     print 'STABLE not defined'
 
diff --git a/themes/newgimp/templates/downloads.html b/themes/newgimp/templates/downloads.html
index 7e468e8e..60e9d0f9 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]