[buildbot] phase1,2: fix missing tmp dir

LEDE Commits lede-commits at lists.infradead.org
Sat Mar 6 07:07:55 GMT 2021


ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/79d279d596818e77719f30ef3a9c971c0f4bce06

commit 79d279d596818e77719f30ef3a9c971c0f4bce06
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 5a20804..b32096b 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -207,6 +207,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 58c5e57..d3ad8b6 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