From 6c283af508b8d663aa6f7c074338b08678bd36e1 Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Fri, 20 Mar 2020 09:26:13 +0100
Subject: [PATCH] default: check that 'install' script creates 'location'

---
 slapos/recipe/build/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/slapos/recipe/build/__init__.py b/slapos/recipe/build/__init__.py
index d3da141..db148ec 100644
--- a/slapos/recipe/build/__init__.py
+++ b/slapos/recipe/build/__init__.py
@@ -282,6 +282,8 @@ class Script(EnvironMixin):
           else:
             self.logger.debug('Removing %r', path)
             rmtree(path)
+    if not os.path.exists(location):
+      raise zc.buildout.UserError('%r was not created' % location)
     return location
 
   def update(self):
-- 
2.30.9