From 9eccf1b2c2c381151b534afa1b0c674b02428166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 24 Jun 2005 13:11:41 +0000 Subject: [PATCH] =?UTF-8?q?actions=20API'a=20text=20de=C4=9Fi=C5=9Fken=20g?= =?UTF-8?q?=C3=B6ndermek=20i=C3=A7in=20en=20makul=20yol=20ENVIRONMENT=20ta?= =?UTF-8?q?n=C4=B1mlamak.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pisi/build.py b/pisi/build.py index 24b98d09..9408bd60 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -56,7 +56,16 @@ class PisiBuild: curDir = os.getcwd() locals = globals = {} - + # put the evironment variables for actions API to use. + evn = { + "PKG_DIR": self.ctx.pkg_dir(), + "WORK_DIR": self.ctx.pkg_work_dir(), + "INSTALL_DIR": self.ctx.pkg_install_dir(), + "SRC_NAME": self.spec.source.name, + "SRC_VERSION": self.spec.source.version + } + os.environ.update(evn) + try: exec compile(self.actionScript , "error", "exec") in locals,globals except SyntaxError, e: