[zorg] r351787 - [Fuchsia] Always clean-up the SDK directory
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 22 00:11:45 PST 2019
Author: phosek
Date: Tue Jan 22 00:11:45 2019
New Revision: 351787
URL: http://llvm.org/viewvc/llvm-project?rev=351787&view=rev
Log:
[Fuchsia] Always clean-up the SDK directory
Avoid previous stale versions, use unzip with override.
Modified:
zorg/trunk/zorg/buildbot/builders/FuchsiaBuilder.py
Modified: zorg/trunk/zorg/buildbot/builders/FuchsiaBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/FuchsiaBuilder.py?rev=351787&r1=351786&r2=351787&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/FuchsiaBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/FuchsiaBuilder.py Tue Jan 22 00:11:45 2019
@@ -7,7 +7,7 @@ from buildbot.steps.source import SVN
from zorg.buildbot.commands.CmakeCommand import CmakeCommand
from zorg.buildbot.commands.NinjaCommand import NinjaCommand
-from zorg.buildbot.conditions.FileConditions import FileExists, FileDoesNotExist
+from zorg.buildbot.conditions.FileConditions import FileDoesNotExist
from zorg.buildbot.process.factory import LLVMBuildFactory, svn_repos
def getToolchainBuildFactory(
@@ -55,8 +55,7 @@ def getToolchainBuildFactory(
f.addStep(RemoveDirectory(name="clean-sdk",
dir=sdk_dir,
- haltOnFailure=True,
- doStepIf=FileExists(sdk_dir)))
+ haltOnFailure=True))
f.addStep(ShellCommand(name="fetch-sdk",
command=["curl", "-SLf", "-o", "sdk.cipd", sdk_url],
@@ -64,7 +63,7 @@ def getToolchainBuildFactory(
workdir=sdk_dir))
f.addStep(ShellCommand(name="extract-sdk",
- command=["unzip", "sdk.cipd"],
+ command=["unzip", "-fo", "sdk.cipd"],
description=["extract", "fuchsia sdk"],
workdir=sdk_dir))
More information about the llvm-commits
mailing list