[buildbot] phase1: always allow user clean targets

LEDE Commits lede-commits at lists.infradead.org
Fri Nov 4 08:46:05 PDT 2016


jow pushed a commit to buildbot.git, branch master:
https://git.lede-project.org/d2d7740812e23e360754e65380d4bf5cd85b98da

commit d2d7740812e23e360754e65380d4bf5cd85b98da
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Fri Nov 4 16:45:31 2016 +0100

    phase1: always allow user clean targets
    
    Also allow user clean targets if a tree expiry has been configured.
    
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 phase1/master.cfg | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/phase1/master.cfg b/phase1/master.cfg
index f92a080..4014c20 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -250,14 +250,13 @@ for target in targets:
 			timeout = 2400))
 
 	# user-requested clean targets
-	else:
-		for tuple in CleanTargetMap:
-			factory.addStep(ShellCommand(
-				name = tuple[1],
-				description = 'User-requested "make %s"' % tuple[1],
-				command = ["make", tuple[1], "V=s"],
-				doStepIf = IsCleanRequested(tuple[0])
-			))
+	for tuple in CleanTargetMap:
+		factory.addStep(ShellCommand(
+			name = tuple[1],
+			description = 'User-requested "make %s"' % tuple[1],
+			command = ["make", tuple[1], "V=s"],
+			doStepIf = IsCleanRequested(tuple[0])
+		))
 
 	# check out the source
 	factory.addStep(Git(repourl=repo_url, mode='update'))



More information about the lede-commits mailing list