Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sjhbuild/config.py
diff options
context:
space:
mode:
authorSascha Silbe <sascha-org-sugar-git@silbe.org>2009-06-06 15:32:08 (GMT)
committer Sascha Silbe <sascha-org-sugar-git@silbe.org>2009-06-18 21:23:50 (GMT)
commit75cbaa76badfbac5e89dfce36f6a98616cbcb4c0 (patch)
tree675db28ac916c77c732dda4e031695a0bc60bf9f /sjhbuild/config.py
parente133abd16e46c75b8d2e123055f0211b2f716393 (diff)
Partial rewrite of the sysdeps code:
* added support for reading multiple sysdeps files (so they can be split and thus the redundancy reduced) * fallback to unstable distro version if current version is unknown (so it won't stop working when Fedora switches versions) * abort if no sysdeps are available (since sugar-jhbuild will break in unexpected ways otherwise) * cache distribution information and dependency list to speed up execution
Diffstat (limited to 'sjhbuild/config.py')
-rw-r--r--sjhbuild/config.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/sjhbuild/config.py b/sjhbuild/config.py
index 321669c..d209a29 100644
--- a/sjhbuild/config.py
+++ b/sjhbuild/config.py
@@ -17,8 +17,13 @@ class Config(jhbuild.config.Config):
self.checkoutroot = os.path.join(self.base_dir, 'source')
self.tarballdir = os.path.join(self.base_dir, 'source')
-
- for package, source in sysdeps.get_packages():
+
+ deps = sysdeps.get_packages()
+ if not deps:
+ sys.stderr.write("ERROR: Dependencies information is missing (unknown distribution/version).\n")
+ sys.exit(126)
+
+ for package, source in deps :
if source and source not in self.skip:
self.skip.append(source)