Fix regexp match for qmake version

pull/201/head
Jouni Roivas 9 years ago
parent 365155a4f0
commit e63e126104
  1. 2
      dependencies.py

@ -688,7 +688,7 @@ class Qt5Dependency(Dependency):
if not 'version 5' in stdo:
mlog.log('QMake is not for Qt5.')
return
self.version = re.search('5(\.\d+)+', stdo).match(0)
self.version = re.search('5(\.\d+)+', stdo).group(0)
(stdo, _) = subprocess.Popen(['qmake', '-query'], stdout=subprocess.PIPE).communicate()
qvars = {}
for line in stdo.decode().split('\n'):

Loading…
Cancel
Save