[library-web] add setting to disable git for stable versions for now
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] add setting to disable git for stable versions for now
- Date: Tue, 28 Jan 2014 12:18:03 +0000 (UTC)
commit 3a14c645d86b1d4653d8e6ea3defc1f3f4e6b7cd
Author: Frédéric Péters <fpeters 0d be>
Date: Tue Jan 28 12:08:19 2014 +0000
add setting to disable git for stable versions for now
src/config.py | 2 +-
src/defaults.lgorc | 3 +++
src/lgo.py | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/config.py b/src/config.py
index a68a846..67be5ee 100644
--- a/src/config.py
+++ b/src/config.py
@@ -37,7 +37,7 @@ _known_keys = ['ftp_gnome_org_local_copy', 'use_latest_version',
'httxt2dbm_path', 'fast_mode', 'create_tarballs',
'symbols_sqlite_filepath', 'nightly_tarballs_location',
'channels', 'doc_path_template', 'indexes_xsl_file',
- 'baseref']
+ 'baseref', 'use_git_for_stable_version']
class Config:
def __init__(self, filename=_default_lgorc):
diff --git a/src/defaults.lgorc b/src/defaults.lgorc
index 225313d..19af6fe 100644
--- a/src/defaults.lgorc
+++ b/src/defaults.lgorc
@@ -46,6 +46,9 @@ if os.path.exists(extra_tarballs_file):
# explicitely written in jhbuild moduleset)
use_latest_version = True
+# replace latest stable version by a git clone
+use_git_for_stable_version = False
+
# path to dbm file to hold all API symbols (useful for Apache RewriteMap)
# (None if not to be built)
symbols_dbm_filepath = None
diff --git a/src/lgo.py b/src/lgo.py
index f450f26..d2155cb 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -268,7 +268,7 @@ class Lgo(App):
# not shipped with latest GNOME are made available.
moduleset.seek(0)
self.process_latest_moduleset(moduleset)
- if int(r.split('.')[1]) % 2 == 0:
+ if self.config.use_git_for_stable_version and int(r.split('.')[1]) % 2 == 0:
moduleset.seek(0)
self.process_stable_moduleset(moduleset, r)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]