Don't treat DirEntry as a string.

This commit is contained in:
Jelmer Vernooij 2021-03-17 17:13:55 +00:00
parent 5ec4638487
commit ba8f6d442c

View file

@ -579,7 +579,7 @@ class Make(BuildSystem):
if not makefile_exists() and session.exists("configure"):
run_with_build_fixers(session, ["./configure"], fixers)
if not makefile_exists() and any([n.endswith('.pro') for n in session.scandir(".")]):
if not makefile_exists() and any([n.name.endswith('.pro') for n in session.scandir(".")]):
run_with_build_fixers(session, ["qmake"], fixers)
def build(self, session, resolver, fixers):