From f479213ad84ed1428cf7fbe132f50eb39bf013e2 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 29 Jan 2017 15:57:15 +0100 Subject: [PATCH] Fixes #323. --- src/nimble.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nimble.nim b/src/nimble.nim index 15f8fb7..9d19199 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -455,10 +455,10 @@ proc installFromDir(dir: string, requestedVer: VersionRange, options: Options, # Set file permissions to +x for all binaries built, # and symlink them on *nix OS' to $nimbleDir/bin/ for bin in pkgInfo.bin: - if not existsFile(pkgDestDir / bin): + if existsFile(pkgDestDir / bin): display("Warning:", ("Binary '$1' was already installed from source" & " directory. Will be overwritten.") % bin, Warning, - HighPriority) + MediumPriority) # Copy the binary file. filesInstalled.incl copyFileD(pkgInfo.getOutputDir(bin),