Skip to content

Commit

Permalink
Allow fallback in nodownload mode
Browse files Browse the repository at this point in the history
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().
  • Loading branch information
xclaesse authored and jpakkane committed Dec 19, 2018
1 parent f126f43 commit 47b9c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3075,7 +3075,7 @@ def get_subproject_infos(self, kwargs):

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.')
Expand Down

0 comments on commit 47b9c1a

Please sign in to comment.