[buildbot] phase1,2: fix missing tmp dir

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 14 16:05:47 EST 2021


ynezz pushed a commit to buildbot.git, branch staging/ynezz/buildbot-2.10.0:
https://git.openwrt.org/7f21a902a40e341bb178700d579be6b9903649dd

commit 7f21a902a40e341bb178700d579be6b9903649dd
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Thu Jan 14 18:32:33 2021 +0100

    phase1,2: fix missing tmp dir
    
    Silence the missing tmp dir warning in the source.git.
    
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 phase1/master.cfg | 1 +
 phase2/master.cfg | 1 +
 2 files changed, 2 insertions(+)

diff --git a/phase1/master.cfg b/phase1/master.cfg
index ab6f52b..c7fff88 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -200,6 +200,7 @@ if not os.path.isdir(work_dir+'/source.git'):
 else:
 	subprocess.call(["git", "pull"], cwd = work_dir+'/source.git')
 
+os.makedirs(work_dir+'/source.git/tmp', exist_ok=True)
 findtargets = subprocess.Popen(['./scripts/dump-target-info.pl', 'targets'],
 	stdout = subprocess.PIPE, cwd = work_dir+'/source.git')
 
diff --git a/phase2/master.cfg b/phase2/master.cfg
index cb050e1..fdf8430 100644
--- a/phase2/master.cfg
+++ b/phase2/master.cfg
@@ -163,6 +163,7 @@ if not os.path.isdir(work_dir+'/source.git'):
 else:
 	subprocess.call(["git", "pull"], cwd = work_dir+'/source.git')
 
+os.makedirs(work_dir+'/source.git/tmp', exist_ok=True)
 findarches = subprocess.Popen(['./scripts/dump-target-info.pl', 'architectures'],
 	stdout = subprocess.PIPE, cwd = work_dir+'/source.git')
 



More information about the lede-commits mailing list