This commit is contained in:
Gürer Özen
2006-08-11 09:11:45 +00:00
parent e93e69143a
commit ef99bc59de
+7 -4
View File
@@ -1,12 +1,13 @@
--- build.py 2006-08-10 15:13:09.000000000 +0300
+++ boxbuild.py 2006-08-10 15:13:05.000000000 +0300
@@ -197,13 +197,27 @@
--- build.py 2006-08-11 12:12:31.000000000 +0300
+++ boxbuild.py 2006-08-11 12:12:27.000000000 +0300
@@ -197,13 +197,30 @@
# apply the patches and prepare a source directory for build.
self.apply_patches()
- self.run_setup_action()
- self.run_build_action()
- self.run_install_action()
+ if True:
+ import catbox
+ ret = catbox.run(
+ self.sandboxed,
@@ -15,13 +16,15 @@
+ )
+ if ret != 0:
+ raise Error, "actions.py borked"
+ else:
+ self.sandboxed()
# after all, we are ready to build/prepare the packages
return self.build_packages()
+ def sandbox_logger(self, event, data):
+ if event == "denied":
+ ctx.ui.error("Access denied to '%s'" % data)
+ ctx.ui.error("Access denied: %s('%s')" % (data[0], data[1]))
+
+ def sandboxed(self):
+ self.run_setup_action()