From 69efef5f4b87c567879802908d26355f30531cf0 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 10 Jan 2017 23:53:46 +0100 Subject: [PATCH] Fixes #313. Fixes #314. Binary packages installation issues fixed. --- src/nimble.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimble.nim b/src/nimble.nim index e1f9ccc..15f8fb7 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -447,7 +447,6 @@ proc installFromDir(dir: string, requestedVer: VersionRange, options: Options, let dest = changeRoot(pkgInfo.myPath.splitFile.dir, pkgDestDir, pkgInfo.myPath) filesInstalled.incl copyFileD(pkgInfo.myPath, dest) - pkgInfo.myPath = dest var binariesInstalled = initSet[string]() if pkgInfo.bin.len > 0: @@ -523,6 +522,7 @@ proc installFromDir(dir: string, requestedVer: VersionRange, options: Options, result.paths.add pkgDestDir result.pkg = pkgInfo result.pkg.isInstalled = true + result.pkg.myPath = dest display("Success:", pkgInfo.name & " installed successfully.", Success, HighPriority)