# Use a different log file for the builder stuff.
file = /var/log/pakfire-builder.log
+
+[builder]
+# Use ccache in order to build rebuilds in less time.
+#use_ccache = true
+
+# Use icecream in order to speed up builds.
+#use_icecream = false
+
+# Create build environments in a tmpfs.
+# This requires a lot of RAM.
+# Only enable if you know what your are doing.
+#use_tmpfs = false
+
+# Create loop devices in build environment.
+#use_loop_devices = true
for line in BUILD_LOG_HEADER.splitlines():
self.log.info(line % logdata)
- # XXX need to make this configureable
+ # Settings array.
self.settings = {
- "enable_loop_devices" : True,
- "enable_ccache" : True,
- "enable_icecream" : False,
- "sign_packages" : False,
- "buildroot_tmpfs" : False,
+ "enable_loop_devices" : self.config.get_bool("builder", "use_loop_devices", True),
+ "enable_ccache" : self.config.get_bool("builder", "use_ccache", True),
+ "enable_icecream" : self.config.get_bool("builder", "use_icecream", False),
+ "sign_packages" : False,
+ "buildroot_tmpfs" : self.config.get_bool("builder", "use_tmpfs", False),
}
- #self.settings.update(settings)
# Try to get the configured host key. If it is available,
# we will automatically sign all packages with it.
# Remove all files.
self.destroy()
+ @property
+ def config(self):
+ """
+ Proxy method for easy access to the configuration.
+ """
+ return self.pakfire.config
+
@property
def distro(self):
"""