[jhbuild] Do not try loading directories as moduleset
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Do not try loading directories as moduleset
- Date: Fri, 11 Jun 2010 18:29:31 +0000 (UTC)
commit f3bed26183a137e5afb848ca1a402bfccfdd198a
Author: Frédéric Péters <fpeters 0d be>
Date: Fri Jun 11 20:21:32 2010 +0200
Do not try loading directories as moduleset
jhbuild/moduleset.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/moduleset.py b/jhbuild/moduleset.py
index 3389713..3c50405 100644
--- a/jhbuild/moduleset.py
+++ b/jhbuild/moduleset.py
@@ -284,7 +284,7 @@ def load(config, uri=None):
modulesets = [ config.moduleset ]
ms = ModuleSet(config = config)
for uri in modulesets:
- if '/' not in uri and not os.path.exists(uri):
+ if '/' not in uri and not os.path.isfile(uri):
if config.modulesets_dir and config.nonetwork or config.use_local_modulesets:
uri = os.path.join(config.modulesets_dir, uri + '.modules')
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]