From 59cd244837d2a8c46898044f58c8d0708feab482 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 7 Mar 2017 23:34:39 -0500 Subject: [PATCH] Add a temporary HACK to work around bad path logic in trigger --- buildman/component/buildcomponent.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/buildman/component/buildcomponent.py b/buildman/component/buildcomponent.py index eeb6d0dba..075285334 100644 --- a/buildman/component/buildcomponent.py +++ b/buildman/component/buildcomponent.py @@ -126,6 +126,14 @@ class BuildComponent(BaseComponent): subdir, dockerfile_name = os.path.split(build_config.get('build_subdir', '/Dockerfile')) + # HACK HACK HACK HACK HACK HACK HACK + # TODO: FIX THIS in the database and then turn the split back on. + if dockerfile_name.find('Dockerfile') < 0: + # This is a *HACK* for the broken path handling. To be fixed ASAP. + subdir = build_config.get('build_subdir') or '/' + dockerfile_name = 'Dockerfile' + # /HACK HACK HACK HACK HACK HACK HACK + build_arguments = { 'build_package': build_job.get_build_package_url(self.user_files), 'sub_directory': subdir,