msubprojects: Fix crash if wrapdb_version is in bad format

Fixes: #12378
pull/12319/merge
Xavier Claessens 1 year ago committed by Nirbheek Chauhan
parent 5fcf347661
commit 746c4eff48
  1. 5
      mesonbuild/msubprojects.py

@ -155,6 +155,11 @@ class Runner:
try:
wrapdb_version = self.wrap.get('wrapdb_version')
branch, revision = wrapdb_version.split('-', 1)
except ValueError:
if not options.force:
self.log(' ->', mlog.red('Malformed wrapdb_version field, use --force to update any way'))
return False
branch = revision = None
except WrapException:
# Fallback to parsing the patch URL to determine current version.
# This won't work for projects that have upstream Meson support.

Loading…
Cancel
Save