From 8103617c23fed8f07f23431d0b66ca6bcb6cba2d Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 21 Apr 2015 19:33:19 +0000 Subject: distbuild: Don't check if there is free disk space on the initiator This check is intended for local builds, not distbuilds. Much less disk space is needed to distbuild. Change-Id: Iaff77805119129cbf6584de418ef97c7f1b82ad8 --- morphlib/plugins/build_plugin.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/morphlib/plugins/build_plugin.py b/morphlib/plugins/build_plugin.py index e5b35853..b8569ff7 100644 --- a/morphlib/plugins/build_plugin.py +++ b/morphlib/plugins/build_plugin.py @@ -189,12 +189,13 @@ class BuildPlugin(cliapp.Plugin): build-essential ''' - # Raise an exception if there is not enough space - morphlib.util.check_disk_available( - self.app.settings['tempdir'], - self.app.settings['tempdir-min-space'], - self.app.settings['cachedir'], - self.app.settings['cachedir-min-space']) + if not self.use_distbuild: + # Raise an exception if there is not enough space + morphlib.util.check_disk_available( + self.app.settings['tempdir'], + self.app.settings['tempdir-min-space'], + self.app.settings['cachedir'], + self.app.settings['cachedir-min-space']) ws = morphlib.workspace.open('.') sb = morphlib.sysbranchdir.open_from_within('.') -- cgit v1.2.1