summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-04-21 19:33:19 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-04-22 08:22:06 +0000
commit8103617c23fed8f07f23431d0b66ca6bcb6cba2d (patch)
treefce0f83c53e06afefcbb4ef8c6844913a9e080f4
parent9d2700755d616d66d49713cce77c48e1eb566cef (diff)
downloadmorph-8103617c23fed8f07f23431d0b66ca6bcb6cba2d.tar.gz
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
-rw-r--r--morphlib/plugins/build_plugin.py13
1 files 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('.')