build: Fetch actions script inside __init__

Otherwise, set_build_type would fail when loading actions script.
Fixes the regression introduced in r37972.
This commit is contained in:
Fatih Aşıcı
2011-10-12 06:15:25 +00:00
parent 1ff8b4e25c
commit a5c0cecfd9
+1 -1
View File
@@ -211,6 +211,7 @@ class Builder:
pkgname = os.path.basename(self.specdiruri)
self.specdir = util.join_path(ctx.config.tmp_dir(), pkgname)
self.fetch_actionsfile()
self.fetch_translationsfile()
else:
self.specdir = os.path.dirname(self.specuri.get_uri())
@@ -422,7 +423,6 @@ class Builder:
os.environ["CCACHE_DIR"] = "/root/.ccache"
def fetch_files(self):
self.fetch_actionsfile()
self.fetch_patches()
self.fetch_comarfiles()
self.fetch_additionalFiles()