aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/msubprojects.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/msubprojects.py')
-rwxr-xr-xmesonbuild/msubprojects.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py
index 21f0853..f8c0b92 100755
--- a/mesonbuild/msubprojects.py
+++ b/mesonbuild/msubprojects.py
@@ -394,19 +394,22 @@ class Runner:
def update(self) -> bool:
self.log(f'Updating {self.wrap.name}...')
+ success = False
if self.wrap.type == 'file':
- return self.update_file()
+ success = self.update_file()
elif self.wrap.type == 'git':
- return self.update_git()
+ success = self.update_git()
elif self.wrap.type == 'hg':
- return self.update_hg()
+ success = self.update_hg()
elif self.wrap.type == 'svn':
- return self.update_svn()
+ success = self.update_svn()
elif self.wrap.type is None:
self.log(' -> Cannot update subproject with no wrap file')
else:
self.log(' -> Cannot update', self.wrap.type, 'subproject')
- return True
+ if success:
+ self.wrap.update_hash_cache(self.wrap_resolver.dirname)
+ return success
def checkout(self) -> bool:
options = T.cast('CheckoutArguments', self.options)