[gimp-web/testing] Add DEVELOPMENT downloads section parsing to pelican configuration
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Add DEVELOPMENT downloads section parsing to pelican configuration
- Date: Fri, 25 Aug 2017 22:04:23 +0000 (UTC)
commit 33378269f7a9e852190f7fe82e6cbd96e75f543d
Author: Michael Schumacher <schumaml gmx de>
Date: Sat Aug 26 00:02:52 2017 +0200
Add DEVELOPMENT downloads section parsing to pelican configuration
pelicanconf.py | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/pelicanconf.py b/pelicanconf.py
index d940268..e3ebbad 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -147,7 +147,7 @@ if 'STABLE' in GIMP:
RELEASE_DATE
except NameError:
RELEASE_DATE = info['date']
- if 'windows' in info:
+ if 'windows' in info:
try:
WINDOWS_FILE
except NameError:
@@ -164,14 +164,39 @@ if 'STABLE' in GIMP:
else:
print 'STABLE not defined'
+if 'DEVELOPMENT' in GIMP:
+ # development version
+ GIMP_VERSION_DEVELOPMENT = GIMP['DEVELOPMENT'].keys()[0]
+ for version, info in GIMP['DEVELOPMENT'].iteritems() :
+ if 'date' in info:
+ try:
+ RELEASE_DATE_DEVELOPMENT
+ except NameError:
+ RELEASE_DATE_DEVELOPMENT = info['date']
+ if 'windows' in info:
+ try:
+ WINDOWS_FILE_DEVELOPMENT
+ except NameError:
+ WINDOWS_VER_DEVELOPMENT = version
+ WINDOWS_FILE_DEVELOPMENT = info['windows'].keys()[0]
+ WINDOWS_HASH_DEVELOPMENT = info['windows'].values()[0]
+ if 'macos' in info:
+ try:
+ MACOS_FILE_DEVELOPMENT
+ except NameError:
+ MACOS_VER_DEVELOPMENT = version
+ MACOS_FILE_DEVELOPMENT = info['macos'].keys()[0]
+ MACOS_HASH_DEVELOPMENT = info['macos'].values()[0]
+else:
+ print 'DEVELOPMENT not defined'
#
# Random Header Background Image
-#
+#
# This is to get the possible header images
# and choose one randomly to display.
#
-# Templates will use HEADER_IMG data to parse image information.
+# Templates will use HEADER_IMG data to parse image information.
# Refer to the random_header plugin for actually putting the image
# in the correct stylesheet.
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]