diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-06-15 19:40:17 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-06-15 19:40:17 (GMT) |
commit | 725929e4b2dad321f42ed70c144811efb77b5fb3 (patch) | |
tree | 488094db646327edcae933c3d0b54e6d48bf9b50 /scripts | |
parent | cf9b2e98e7c801c09eef7a5d6d7244294a567aba (diff) |
When running under buildbot avoid interactions
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-system | 5 | ||||
-rw-r--r-- | scripts/jhbuildrc | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/check-system b/scripts/check-system index 7484713..0801656 100755 --- a/scripts/check-system +++ b/scripts/check-system @@ -2,6 +2,7 @@ import os import subprocess +import sys binaries = [{ "name": "git", "packages": { "fedora": "git", @@ -154,6 +155,10 @@ for info in imports: if packages: args = ["sudo"] + if "SUGAR_BUILDBOT" in os.environ: + print "Missing packages %s" % " ".join(packages) + sys.exit(1) + if distro == "fedora": args.extend(["yum", "install"]) elif distro == "ubuntu": diff --git a/scripts/jhbuildrc b/scripts/jhbuildrc index f2491d0..cb63887 100644 --- a/scripts/jhbuildrc +++ b/scripts/jhbuildrc @@ -3,6 +3,8 @@ import os def root(): return os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +interact = not "SUGAR_BUILDBOT" in os.environ + use_local_modulesets = True moduleset = [os.path.join(root(), "scripts", "system.modules"), os.path.join(root(), "scripts", "sugar.modules")] |