summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/wscript b/third_party/wscript
index d41b90698ed..d5b9df7bb96 100644
--- a/third_party/wscript
+++ b/third_party/wscript
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+import samba_git
import Utils
import os
import sys
@@ -27,8 +28,7 @@ def find_third_party_module(conf, module, package):
try:
__import__(module)
except ImportError:
- if (os.path.isdir(os.path.join(conf.srcdir, ".git")) and
- os.path.isfile(os.path.join(conf.srcdir, ".gitmodule"))):
+ if samba_git.has_submodules(conf.srcdir):
raise Utils.WafError("""\
Unable to find Python module '%s'. Please install the system package or check \
out the relevant submodule by running 'git submodule update --init'.