From 970682a7794b9728a8ccb9d068e6fcaa6483f522 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 18 Jan 2012 17:08:30 -0500 Subject: [PATCH] ostbuild: Actually do check for Makefile Just kidding, we need the makefile path to check for .NOTPARALLEL --- src/ostbuild/pyostbuild/builtin_compile_one.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ostbuild/pyostbuild/builtin_compile_one.py b/src/ostbuild/pyostbuild/builtin_compile_one.py index 88b3d119..cd2983da 100755 --- a/src/ostbuild/pyostbuild/builtin_compile_one.py +++ b/src/ostbuild/pyostbuild/builtin_compile_one.py @@ -152,6 +152,14 @@ class OstbuildCompileOne(builtins.Builtin): args.extend(self.configargs) run_sync(args, cwd=builddir) + makefile_path = None + for name in ['Makefile', 'makefile', 'GNUmakefile']: + makefile_path = os.path.join(builddir, name) + if os.path.exists(makefile_path): + break + if makefile_path is None: + fatal("No Makefile found") + args = list(self.makeargs) user_specified_jobs = False for arg in args: