phase1: avoid creating nested dl/ symlinks
authorJo-Philipp Wich <jo@mein.io>
Mon, 14 Nov 2016 14:00:24 +0000 (15:00 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 14 Nov 2016 14:00:24 +0000 (15:00 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index 1e8e54e0ac4a5041ff9de1083c4c462e5a757db5..91cc1a7409cf79c1fc1e270fbb633bd39b901de6 100644 (file)
@@ -355,7 +355,7 @@ EOT''' %(ts[0], ts[0], ts[1]) ))
        factory.addStep(ShellCommand(
                name = "dldir",
                description = "Preparing dl/",
-               command = "mkdir -p $HOME/dl && ln -sf $HOME/dl ./dl",
+               command = "mkdir -p $HOME/dl && rm -rf ./dl && ln -sf $HOME/dl ./dl",
                logEnviron = False,
                want_stdout = False
        ))