From 974aa33778279043454d3635713bbcef7d825c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 13 Jun 2005 21:31:45 +0000 Subject: [PATCH] =?UTF-8?q?pisi-build'in=20actions=20beti=C4=9Fi=20i=C3=A7?= =?UTF-8?q?inden=20fonksiyonlar=C4=B1=20=C3=A7a=C4=9F=C4=B1rmak=20i=C3=A7i?= =?UTF-8?q?n=20en=20uygun=20y=C3=B6ntemi=20bu=20sanki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pisi/actionsapi/libbuild.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pisi/actionsapi/libbuild.py b/src/pisi/actionsapi/libbuild.py index 48a6bbaa..a1d64f73 100644 --- a/src/pisi/actionsapi/libbuild.py +++ b/src/pisi/actionsapi/libbuild.py @@ -13,5 +13,9 @@ if __name__ == "__main__": ''' WILLBE: pisi-build call action script after entered the build directory ''' os.chdir( config.tmp_dir() + '/' + package_name + '/build' ) - - execfile( sys.argv[1] ) + + locals = globals = {} + exec compile( open( sys.argv[1] ).read(), "error", "exec" ) in locals,globals + locals['src_setup']() + locals['src_build']() + locals['src_install']()