diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-01-21 13:32:25 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-01-21 13:32:25 (GMT) |
commit | bb597352b2241211a758f735820cb054b3695373 (patch) | |
tree | 9e85e766f5e6ce892f6e4c408a7a9b4fe283dfd0 /sugar-jhbuild | |
parent | d6738638c11365350cb7721763dcd470fbf8b7b6 (diff) |
Add some initial dependency checking logic
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-x | sugar-jhbuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sugar-jhbuild b/sugar-jhbuild index 828cff8..e9ded6a 100755 --- a/sugar-jhbuild +++ b/sugar-jhbuild @@ -8,11 +8,25 @@ sys.path.append(os.path.join(base_dir, 'build-scripts', 'jhbuild')) import jhbuild.commands -from config import Config import bundlemodule +from config import Config +from updater import Updater +from dependencychecker import DependencyChecker + +updater = Updater(base_dir) +updater.update() config = Config(base_dir) +checker = DependencyChecker() +checker.check_python('2.5') + +print 'Missing dependencies:' +if len(checker.get_missing()) > 0: + for missing in checker.get_missing(): + print missing + sys.exit(1) + args = [] command = 'build' |