[gimp-web/testing] Sync OLDSTABLE stuff in pelican.testing.py to pelican.py



commit d8f49bbffe92c0d8810d9a2ccafd1bb75363291e
Author: Pat David <patdavid gmail com>
Date:   Thu May 17 15:37:59 2018 -0500

    Sync OLDSTABLE stuff in pelican.testing.py to pelican.py

 pelicanconf.py |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/pelicanconf.py b/pelicanconf.py
index 250cb93..c2ba43b 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -179,6 +179,38 @@ if 'STABLE' in GIMP:
 else:
     print 'STABLE not defined'
 
+if 'OLDSTABLE' in GIMP:
+    # Set the current stable GIMP version from
+    # the GIMP_VERSIONS json file.  The most
+    # current version _should_ be the first key
+    # hence, .keys()[0]
+    GIMP_VERSION_OLDSTABLE = GIMP['OLDSTABLE'].keys()[0]
+    GIMP_MAJOR_MINOR_VERSION_OLDSTABLE= GIMP_VERSION_OLDSTABLE[:GIMP_VERSION_OLDSTABLE.index('.', 
GIMP_VERSION_OLDSTABLE.index('.') + 1)]
+    for version, info in GIMP['OLDSTABLE'].iteritems() :
+        if 'date' in info:
+            try:
+                RELEASE_DATE_OLDSTABLE
+            except NameError:
+                RELEASE_DATE_OLDSTABLE = info['date']
+        if 'windows' in info:
+            try:
+                WINDOWS_FILE_OLDSTABLE
+            except NameError:
+                WINDOWS_VER_OLDSTABLE = version
+                WINDOWS_MAJOR_MINOR_VER_OLDSTABLE = version[:version.index('.', version.index('.') + 1)]
+                WINDOWS_FILE_OLDSTABLE = info['windows'].keys()[0]
+                WINDOWS_HASH_OLDSTABLE = info['windows'].values()[0]
+        if 'macos' in info:
+            try:
+                MACOS_FILE_OLDSTABLE
+            except NameError:
+                MACOS_VER_OLDSTABLE = version
+                MACOS_MAJOR_MINOR_VER_OLDSTABLE= version[:version.index('.', version.index('.') + 1)]
+                MACOS_FILE_OLDSTABLE = info['macos'].keys()[0]
+                MACOS_HASH_OLDSTABLE = info['macos'].values()[0]
+else:
+    print 'OLDSTABLE not defined'
+
 if 'DEVELOPMENT' in GIMP:
     # development version
     GIMP_VERSION_DEVELOPMENT = GIMP['DEVELOPMENT'].keys()[0]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]