From e93e69143ab8d6df545f3d5dd289139dcfd49fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrer=20=C3=96zen?= Date: Thu, 10 Aug 2006 12:16:15 +0000 Subject: [PATCH] =?UTF-8?q?bu=20yama=20burda=20dursun=20=C5=9Fimdilik,=20b?= =?UTF-8?q?uild=20i=C3=A7in=20opsiyon=20=C5=9Feklinde=20eklemek=20laz?= =?UTF-8?q?=C4=B1m=20pisiye?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/catbox.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pisi/catbox.patch diff --git a/pisi/catbox.patch b/pisi/catbox.patch new file mode 100644 index 00000000..ced4f785 --- /dev/null +++ b/pisi/catbox.patch @@ -0,0 +1,33 @@ +--- build.py 2006-08-10 15:13:09.000000000 +0300 ++++ boxbuild.py 2006-08-10 15:13:05.000000000 +0300 +@@ -197,13 +197,27 @@ + # 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() ++ import catbox ++ ret = catbox.run( ++ self.sandboxed, ++ ["/var/tmp/pisi", "/tmp", "/dev/tty", "/dev/null"], ++ logger = self.sandbox_logger ++ ) ++ if ret != 0: ++ raise Error, "actions.py borked" + + # 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) ++ ++ def sandboxed(self): ++ self.run_setup_action() ++ self.run_build_action() ++ self.run_install_action() ++ + def set_environment_vars(self): + """Sets the environment variables for actions API to use""" +