[gimp-web/testing] Sync OLDSTABLE stuff in pelican.testing to pelican.local
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Sync OLDSTABLE stuff in pelican.testing to pelican.local
- Date: Thu, 17 May 2018 19:45:10 +0000 (UTC)
commit 965e16bee79432b866a42ee737a52c34f885e8ad
Author: Pat David <patdavid gmail com>
Date: Thu May 17 14:41:50 2018 -0500
Sync OLDSTABLE stuff in pelican.testing to pelican.local
schumaml started adding this to support an OLDSTABLE download page
for people looking for 2.8 stuff. This is just syncing his work
to the pelican.local.py file.
I am not sure we need an entire download page just for the old
2.8 stuff - I feel like a simple set of links to the mirror to
get the file should be enough.
I've changed downloads.html template to add these links
automatically. If we don't like it, we can still work on the
OLDSTABLE page for 2.8.
pelicanconf.local.py | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index f00a325..66818a3 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -192,6 +192,39 @@ 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]