diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-18 15:17:23 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-18 18:14:37 +0530 |
commit | df5c31bada1ce9e2b3320336315f252042b59428 (patch) | |
tree | aaaff30345655ca3c5cf21f579b7546abc8db964 /python | |
parent | e98cd07910a97b26ce5c5609d7140714db947566 (diff) | |
download | servo-df5c31bada1ce9e2b3320336315f252042b59428.tar.gz servo-df5c31bada1ce9e2b3320336315f252042b59428.zip |
Return appropriate code from bootstrap_gstreamer
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/bootstrap.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/python/servo/bootstrap.py b/python/servo/bootstrap.py index 0e128d2826e..262507b79e5 100644 --- a/python/servo/bootstrap.py +++ b/python/servo/bootstrap.py @@ -99,6 +99,12 @@ def gstreamer(context, force=False): return False +def bootstrap_gstreamer(context, force=False): + if not gstreamer(context, force): + print("gstreamer is already set up") + return 0 + + def linux(context, force=False): # Please keep these in sync with the packages in README.md pkgs_apt = ['git', 'curl', 'autoconf', 'libx11-dev', 'libfreetype6-dev', @@ -146,6 +152,8 @@ def linux(context, force=False): if not installed_something: print("Dependencies were already installed!") + return 0 + def salt(context, force=False): # Ensure Salt dependencies are installed @@ -329,7 +337,7 @@ def windows_msvc(context, force=False): LINUX_SPECIFIC_BOOTSTRAPPERS = { "salt": salt, - "gstreamer": gstreamer, + "gstreamer": bootstrap_gstreamer, } |