phase2: avoid creating nested dl/ symlinks
authorJo-Philipp Wich <jo@mein.io>
Mon, 14 Nov 2016 14:01:20 +0000 (15:01 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 14 Nov 2016 14:01:20 +0000 (15:01 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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",