From aeeed8da13086baefcff4b2e5c6a62727226ad4d Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 14 Jan 2012 16:54:00 -0500 Subject: [PATCH] ostbuild: Check for the Makefile in the correct directory --- src/ostbuild/pyostbuild/builtin_compile_one.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ostbuild/pyostbuild/builtin_compile_one.py b/src/ostbuild/pyostbuild/builtin_compile_one.py index 87d4bcfb..de99d67c 100755 --- a/src/ostbuild/pyostbuild/builtin_compile_one.py +++ b/src/ostbuild/pyostbuild/builtin_compile_one.py @@ -161,7 +161,10 @@ class OstbuildCompileOne(builtins.Builtin): args.extend(self.configargs) run_sync(args, cwd=builddir) - makefile_path = os.path.join(builddir, 'Makefile') + if use_builddir: + makefile_path = os.path.join(builddir, 'Makefile') + else: + makefile_path = 'Makefile' if not os.path.exists(makefile_path): fatal("No Makefile found")