Add 'update' and `git-update` targets to update git repos
[platform/upstream/gstreamer.git] / setup
diff --git a/setup b/setup
index 5cca3c7..2c5d301 100755 (executable)
--- a/setup
+++ b/setup
@@ -9,6 +9,7 @@ import subprocess
 
 from common import git
 from common import Colors
+from common import accept_command
 
 
 PROJECTNAME = "GStreamer build"
@@ -25,16 +26,6 @@ def get_meson():
     return accept_command(["meson.py", "meson"]), accept_command(["mesonconf.py", "mesonconf"])
 
 
-def accept_command(commands):
-    """Search @commands and returns the first found absolute path."""
-    for command in commands:
-        command = shutil.which(command)
-        if command:
-            return command
-
-    return None
-
-
 def get_configs(meson):
      return ['-D', 'werror=true']