[PATCH 3/7] S7904: add new config options for minimum sizes

Richard Maw richard.maw at codethink.co.uk
Tue Jun 4 17:52:43 BST 2013


---
 morphlib/app.py |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/morphlib/app.py b/morphlib/app.py
index b4a036c..ab865bc 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -134,6 +134,20 @@ class Morph(cliapp.Application):
                              metavar='DIR',
                              group=group_storage,
                              default=None)
+        self.settings.bytesize(['tempdir-min-space'],
+                               'Immediately fail to build if the directory '
+                               'specified by tempdir has less space remaining '
+                               'than SIZE bytes (default: %default)',
+                               metavar='SIZE',
+                               group=group_storage,
+                               default='10G')
+        self.settings.bytesize(['cachedir-min-space'],
+                               'Immediately fail to build if the directory '
+                               'specified by cachedir has less space remaining '
+                               'than SIZE bytes (default: %default)',
+                               metavar='SIZE',
+                               group=group_storage,
+                               default='10G')
 
         # These cannot be removed just yet because existing morph.conf files
         # would fail to parse.
-- 
1.7.10.4




More information about the baserock-dev mailing list