ostbuild: Support rm-configure flag
This is easier than making git patches that delete configure.
This commit is contained in:
parent
9d37f76a5a
commit
298e4957d9
|
|
@ -181,6 +181,11 @@ class OstbuildBuild(builtins.Builtin):
|
||||||
mirror = os.path.join(self.mirrordir, name)
|
mirror = os.path.join(self.mirrordir, name)
|
||||||
component_src = self._get_vcs_checkout(name, keytype, mirror, branch)
|
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)
|
buildroot_version = self._compose_buildroot(buildroot_name, meta, dependencies, architecture)
|
||||||
|
|
||||||
artifact_meta = {'buildroot': buildroot_name,
|
artifact_meta = {'buildroot': buildroot_name,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue