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:
Christian Stenger
2015-11-11 09:59:09 +01:00
parent 21ad1804f6
commit 340572c980

View File

@@ -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'))