diff options
author | Sascha 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) |
commit | 75cbaa76badfbac5e89dfce36f6a98616cbcb4c0 (patch) | |
tree | 675db28ac916c77c732dda4e031695a0bc60bf9f /sjhbuild/config.py | |
parent | e133abd16e46c75b8d2e123055f0211b2f716393 (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.py | 9 |
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) |