Make waf fail if submodules are out of date.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 18 May 2015 20:00:30 +0000 (20:00 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 May 2015 17:28:19 +0000 (19:28 +0200)
commit5e0821201cc6b5ffc15b1b795ee85dabd3e9220c
tree15928c79ef6a5f6477dfab6c1517ea6cbf4acfdd
parent5d672b9a530e79aff2a7791df82893bcd50d6233
Make waf fail if submodules are out of date.

Instead, suggest the user run 'git submodule update'.

This should prevent users from accidentally building Samba against
outdated or too new versions of the bundled third party libraries
after switching branches.

I've opted to make this an error rather than actually
running 'git submodule update' directly, as the latter could
cause unpredictable behaviour. If we find that manually updating
submodules is too cumbersome, we can always change this. The normal mode
of operation for developers should not involve any submodules at all,
but system versions of these libraries.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_git.py
wscript