[jhbuild] [base] do not fail if bootstrap moduleset is not found
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] [base] do not fail if bootstrap moduleset is not found
- Date: Sun, 17 May 2009 08:38:41 -0400 (EDT)
commit 4922fd418244d3571db31295a73ce18be5ea101e
Author: Frédéric Péters <fpeters 0d be>
Date: Sun May 17 14:37:56 2009 +0200
[base] do not fail if bootstrap moduleset is not found
---
jhbuild/commands/base.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/jhbuild/commands/base.py b/jhbuild/commands/base.py
index 982477c..13a5860 100644
--- a/jhbuild/commands/base.py
+++ b/jhbuild/commands/base.py
@@ -197,7 +197,11 @@ def check_bootstrap_updateness(config):
if p_version != module.get_revision():
updated_modules.append(module.name)
+ if not config.modulesets_dir:
+ return
bootstrap_uri = os.path.join(config.modulesets_dir, 'bootstrap.modules')
+ if not os.path.exists(bootstrap_uri):
+ return
bootstrap_mtime = os.stat(bootstrap_uri)[stat.ST_MTIME]
if max_install_date <= bootstrap_mtime:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]