This commit is contained in:
Dominik Picheta 2017-01-29 15:57:15 +01:00
commit f479213ad8

View file

@ -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),