donate-cpu.py: Also extract .qml files. (#1708)

.qml files are used when the Qt library is loaded.
This commit is contained in:
Sebastian 2019-02-27 14:59:19 +01:00 committed by GitHub
parent 2a45d390f3
commit 117eed2255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ import platform
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
# changes)
CLIENT_VERSION = "1.1.7"
CLIENT_VERSION = "1.1.8"
def checkRequirements():
@ -191,7 +191,8 @@ def unpackPackage(workPath, tgz):
if member.name.startswith(('/', '..')):
# Skip dangerous file names
continue
elif member.name.lower().endswith(('.c', '.cpp', '.cxx', '.cc', '.c++', '.h', '.hpp', '.hxx', '.hh', '.tpp', '.txx')):
elif member.name.lower().endswith(('.c', '.cpp', '.cxx', '.cc', '.c++', '.h', '.hpp',
'.hxx', '.hh', '.tpp', '.txx', '.qml')):
try:
tf.extract(member.name)
except OSError: