From 298e4957d99f4e64f716e04313d95024fe4d7687 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 16 Jan 2012 20:17:39 -0500 Subject: [PATCH] ostbuild: Support rm-configure flag This is easier than making git patches that delete configure. --- src/ostbuild/pyostbuild/builtin_build.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ostbuild/pyostbuild/builtin_build.py b/src/ostbuild/pyostbuild/builtin_build.py index 43d4c729..670b4e8c 100755 --- a/src/ostbuild/pyostbuild/builtin_build.py +++ b/src/ostbuild/pyostbuild/builtin_build.py @@ -181,6 +181,11 @@ class OstbuildBuild(builtins.Builtin): mirror = os.path.join(self.mirrordir, name) component_src = self._get_vcs_checkout(name, keytype, mirror, branch) + if meta.get('rm-configure', False): + configure_path = os.path.join(component_src, 'configure') + if os.path.exists(configure_path): + os.unlink(configure_path) + buildroot_version = self._compose_buildroot(buildroot_name, meta, dependencies, architecture) artifact_meta = {'buildroot': buildroot_name,