]> git.e2factory.org Git - e2factory.git/commitdiff
fix error message when trying to enter a non-existent playground
authorGordon Hecker <gh@emlix.com>
Wed, 22 Apr 2009 15:39:05 +0000 (17:39 +0200)
committerGordon Hecker <gh@emlix.com>
Wed, 22 Apr 2009 15:39:05 +0000 (17:39 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/playground.lua

index 9f1e2b1abd4f34e0f1e087ed73e1c6b443e1b02f..f55fb379485d4da17f947a1d7a3e93226816e0af 100644 (file)
@@ -75,6 +75,9 @@ rc, re = e2build.build_config(info, r, {})
 if not rc then
   e2lib.abort(e:cat(re))
 end
+if not e2build.chroot_exists(info, r) then
+  e2lib.abort("playground does not exist")
+end
 if opts.showpath then
   print(info.results[r].build_config.c)
   e2lib.finish(0)