phase2: avoid creating nested dl/ symlinks
[buildbot.git] / phase2 / master.cfg
index 98a92438ea2c0696facd525a9783b4466a8522b2..d59852117ec2788c30580248b978129a003386dd 100644 (file)
@@ -221,7 +221,7 @@ for arch in arches:
        factory.addStep(ShellCommand(
                name = "mkdldir",
                description = "Preparing download directory",
-               command = ["sh", "-c", "mkdir -p $HOME/dl && rmdir ./sdk/dl && ln -sf $HOME/dl ./sdk/dl"]))
+               command = ["sh", "-c", "mkdir -p $HOME/dl && rm -rf ./sdk/dl && ln -sf $HOME/dl ./sdk/dl"]))
 
        factory.addStep(ShellCommand(
                name = "mkconf",