summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-12-06 15:05:07 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-19 10:21:31 +0200
commit47b9c1a564756ac48a55da9a7c4d91787399c645 (patch)
treeabc7220ae842819ad017c681dca7327a9bcb47d9
parentf126f43c4f8945b513dbd86608d0d7be15f084e9 (diff)
downloadmeson-47b9c1a564756ac48a55da9a7c4d91787399c645.tar.gz
Allow fallback in nodownload mode
It is possible that the subproject has been downloaded already, in that case there is no reason to not use it. If the subproject has not been downlaoded already it will fail do_subproject().
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 4f09c0f90..dc667ea42 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -3075,7 +3075,7 @@ external dependencies (including libraries) must go to "dependencies".''')
def dependency_fallback(self, name, kwargs):
display_name = name if name else '(anonymous)'
- if self.coredata.get_builtin_option('wrap_mode') in (WrapMode.nofallback, WrapMode.nodownload):
+ if self.coredata.get_builtin_option('wrap_mode') == WrapMode.nofallback:
mlog.log('Not looking for a fallback subproject for the dependency',
mlog.bold(display_name), 'because:\nUse of fallback'
'dependencies is disabled.')