"""
+BUILD_SCRIPT = """#!/bin/bash -xe
+
+%%{_%s}
+
+exit 0
+"""
+
class Builder(object):
def __init__(self, arch=None, build_id=None, logfile=None, **kwargs):
self.config = config.Config("general.conf", "builder.conf")
print(makefile)
+ # Execute stages
+ for stage in ("prepare", "build", "test", "install"):
+ # Fetch build script
+ script = makefile.expand("build", BUILD_SCRIPT % stage)
+ if not script:
+ continue
+
+ # Run it
+ self.pakfire.execute_script(script,
+ enable_network=False, interactive=False)
+
def shell(self, packages=[], install=None):
archives = []