[gimp-web/wip/Jehan/gimp-versions] pelicanconf.testing: argh forgot to fix some variables in testing conf.



commit c3fe34a1e8ad8db95a0eef7edcd32eadbc93e2f9
Author: Jehan <jehan girinstud io>
Date:   Sun Jan 26 12:43:12 2020 +0100

    pelicanconf.testing: argh forgot to fix some variables in testing conf.
    
    We should really not have different conf files for dev vs testing vs
    production.

 pelicanconf.testing.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index b923bd4d..c3cc1208 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -154,7 +154,7 @@ if 'STABLE' in GIMP:
             except NameError:
                 WINDOWS_VER = version
                 WINDOWS_MAJOR_MINOR_VER = version[:version.index('.', version.index('.') + 1)]
-                WINDOWS_FILE = info['windows'].keys()[0]
+                WINDOWS_FILE = info['windows'][0]['filename']
                 if 'sha256' in info['windows'][0]:
                     WINDOWS_HASH_FUN = 'sha256'
                 elif 'sha512' in info['windows'][0]:
@@ -170,7 +170,7 @@ if 'STABLE' in GIMP:
             except NameError:
                 MACOS_VER = version
                 MACOS_MAJOR_MINOR_VER = version[:version.index('.', version.index('.') + 1)]
-                MACOS_FILE = info['macos'].keys()[0]
+                MACOS_FILE = info['macos'][0]['filename']
                 if 'sha256' in info['macos'][0]:
                     MACOS_HASH_FUN = 'sha256'
                 elif 'sha512' in info['macos'][0]:
@@ -202,7 +202,7 @@ if 'OLDSTABLE' in GIMP:
             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_FILE_OLDSTABLE = info['windows'][0]['filename']
                 WINDOWS_HASH_OLDSTABLE = info['windows'][0]['md5']
         if 'macos' in info:
             try:
@@ -210,7 +210,7 @@ if 'OLDSTABLE' in GIMP:
             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_FILE_OLDSTABLE = info['macos'][0]['filename']
                 MACOS_HASH_OLDSTABLE = info['macos'][0]['md5']
 else:
     print 'OLDSTABLE not defined'
@@ -230,7 +230,7 @@ if 'DEVELOPMENT' in GIMP:
                 WINDOWS_FILE_DEVELOPMENT
             except NameError:
                 WINDOWS_VER_DEVELOPMENT = version
-                WINDOWS_FILE_DEVELOPMENT = info['windows'].keys()[0]
+                WINDOWS_FILE_DEVELOPMENT = info['windows'][0]['filename']
                 if 'sha256' in info['windows'][0]:
                     WINDOWS_HASH_FUN_DEVELOPMENT = 'sha256'
                 elif 'sha512' in info['windows'][0]:
@@ -243,7 +243,7 @@ if 'DEVELOPMENT' in GIMP:
                 MACOS_FILE_DEVELOPMENT
             except NameError:
                 MACOS_VER_DEVELOPMENT = version
-                MACOS_FILE_DEVELOPMENT = info['macos'].keys()[0]
+                MACOS_FILE_DEVELOPMENT = info['macos'][0]['filename']
                 if 'sha256' in info['macos'][0]:
                     MACOS_HASH_FUN_DEVELOPMENT = 'sha256'
                 elif 'sha512' in info['macos'][0]:
@@ -259,7 +259,7 @@ if 'DEVELOPMENT' in GIMP:
                 FLATPAK_FILE_DEVELOPMENT = {}
                 FLATPAK_HASH_DEVELOPMENT = {}
                 for arch, package in info['flatpak'].iteritems() :
-                    FLATPAK_FILE_DEVELOPMENT[arch] = package.keys()[0]
+                    FLATPAK_FILE_DEVELOPMENT[arch] = package[0]['filename']
                     FLATPAK_HASH_DEVELOPMENT[arch] = package[0]['md5']
 else:
     print 'DEVELOPMENT not defined'


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