summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-01-04 12:28:04 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-01-04 12:28:04 +0100
commit850060009056ca94925831e0a9bdc65c56e0ae8c (patch)
treef899e6535cd6a1592594df8c5addf7011c5548f5
parentcdfa34554c4a8e82bc05b81faa7a1b1316c7ca4e (diff)
downloadNim-850060009056ca94925831e0a9bdc65c56e0ae8c.tar.gz
koch.nim: remove old bin/nimblepkg/*.nim files for nimble installation
-rw-r--r--koch.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/koch.nim b/koch.nim
index 2451a597e..c066c8305 100644
--- a/koch.nim
+++ b/koch.nim
@@ -184,6 +184,10 @@ proc bundleNimbleExe() =
   copyExe("dist/nimble/src/nimble".exe, "bin/nimble".exe)
 
 proc buildNimble(latest: bool) =
+  # old installations created nim/nimblepkg/*.nim files. We remove these
+  # here so that it cannot cause problems (nimble bug #306):
+  if dirExists("bin/nimblepkg"):
+    removeDir("bin/nimblepkg")
   var installDir = "dist/nimble"
   if not dirExists("dist/nimble/.git"):
     # if dist/nimble exist, but is not a git repo, don't mess with it: