build: Reload actions script for each build type

So we can use get.buildTYPE() outside the functions in actions.py.
This commit is contained in:
Fatih Aşıcı
2011-02-22 14:45:01 +00:00
parent 2f278c9561
commit 6c7f49bc82
+1 -2
View File
@@ -315,7 +315,6 @@ class Builder:
ctx.ui.status(_("Building source package: %s")
% self.spec.source.name)
self.load_action_script()
self.compile_comar_script()
# check if all patch files exists, if there are missing no need
@@ -365,6 +364,7 @@ class Builder:
self.build_type = build_type
self.set_environment_vars()
self.load_action_script()
def set_environment_vars(self):
"""Sets the environment variables for actions API to use"""
@@ -1230,7 +1230,6 @@ def build_until(pspec, state):
else:
pb = Builder.from_name(pspec)
pb.load_action_script()
pb.compile_comar_script()
if state == "fetch":