forked from qt-creator/qt-creator
Scripts: Fix deployqt
When comparing re.MatchObjects instead of real bools the objects normally aren't identical. This lead to filtering out all libraries and not copying anything to the respective directory. Change-Id: Ib17cc04d281620b142ac570475d8fdc4912eaa86 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -73,7 +73,7 @@ def is_debug(fpath):
|
|||||||
if coredebug.search(fpath):
|
if coredebug.search(fpath):
|
||||||
return True
|
return True
|
||||||
output = subprocess.check_output(['dumpbin', '/imports', fpath])
|
output = subprocess.check_output(['dumpbin', '/imports', fpath])
|
||||||
return coredebug.search(output)
|
return coredebug.search(output) != None
|
||||||
|
|
||||||
def is_debug_build(install_dir):
|
def is_debug_build(install_dir):
|
||||||
return is_debug(os.path.join(install_dir, 'bin', 'qtcreator.exe'))
|
return is_debug(os.path.join(install_dir, 'bin', 'qtcreator.exe'))
|
||||||
|
Reference in New Issue
Block a user