diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-01-10 09:42:10 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-01-12 12:12:09 +0000 |
commit | b97da3efa0462a4de6ae20904dde3843bc18bce2 (patch) | |
tree | d8f139370b621470eb7458f03406bc764876fd0e /setup.py | |
parent | 9cd8cd2a0435444677e7176459be0d9076d3588f (diff) |
setup.py: Check whether files are present in a submodule
Calling setup.py to initialize the submodules from scratch would
fail complaining about the missing 'master' branch in 'wiki',
since it assumed the submodules were initialized if the directory
was present. Check the directory contents instead.
Change-Id: I577a97d8cacf408f7caf52565e13e88815475a3b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -350,7 +350,7 @@ def prepareSubModules(): module_version = m[1] module_dir = m[2] if len(m) > 2 else '' module_dir = os.path.join(submodules_dir, module_dir, module_name) - if not os.path.exists(module_dir): + if not os.listdir(module_dir): needInitSubModules = True modulesList.append([module_name, module_version, module_dir]) if needInitSubModules: |