Skip to content

Commit

Permalink
Return appropriate code from bootstrap_gstreamer
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Sep 18, 2018
1 parent e98cd07 commit df5c31b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/servo/bootstrap.py
Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -329,7 +337,7 @@ def check_cmake(version):

LINUX_SPECIFIC_BOOTSTRAPPERS = {
"salt": salt,
"gstreamer": gstreamer,
"gstreamer": bootstrap_gstreamer,
}


Expand Down

0 comments on commit df5c31b

Please sign in to comment.