git-update: Make sure to download all subproject before applying manifest
authorThibault Saunier <tsaunier@igalia.com>
Fri, 19 Apr 2019 20:38:24 +0000 (16:38 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 13 May 2019 15:42:42 +0000 (11:42 -0400)
Otherwise we might be missing some subprojects update

git-update

index ae90567..19f27ef 100755 (executable)
@@ -8,6 +8,7 @@ import sys
 from scripts.common import git
 from scripts.common import Colors
 from scripts.common import accept_command
+from scripts.common import get_meson
 
 
 SCRIPTDIR = os.path.normpath(os.path.dirname(__file__))
@@ -143,6 +144,8 @@ if __name__ == "__main__":
         sys.stdin.close()
 
     if options.manifest:
+        meson = get_meson()
+        targets_s = subprocess.check_output(meson + ['subprojects', 'download'])
         repos_commits = manifest_get_commits(options.manifest)
     else:
         repos_commits = {}