From c09b273eaf45a94d0f5189b613662a66c5e1a30c Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 11 Sep 2018 21:11:41 +0100 Subject: [PATCH 1/2] Handle removeDir error when removing Nimble's temp dir. Replaces #537. --- src/nimble.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nimble.nim b/src/nimble.nim index 582912b7..6f5ea0a6 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -1110,7 +1110,11 @@ when isMainModule: except NimbleQuit: discard finally: - removeDir(getNimbleTempDir()) + try: + removeDir(getNimbleTempDir()) + except OSError: + let msg = "Couldn't remove Nimble's temp dir" + display("Warning:", msg, Warning, MediumPriority) if error.len > 0: displayTip() From 3ba8bd940d45796e6dc5ff71b810b5312ac19f84 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 11 Sep 2018 23:35:59 +0100 Subject: [PATCH 2/2] Fixes Nimble installation problem due to breaking change (090917926). --- nimble.nimble | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble.nimble b/nimble.nimble index 68b439bf..7a8e4160 100644 --- a/nimble.nimble +++ b/nimble.nimble @@ -17,6 +17,7 @@ license = "BSD" bin = @["nimble"] srcDir = "src" +installExt = @["nim"] # Dependencies