This commit is contained in:
Dominik Picheta 2016-12-29 15:19:26 +00:00
commit 3d4d751a48

View file

@ -482,6 +482,11 @@ proc installFromDir(dir: string, requestedVer: VersionRange, options: Options,
# and symlink them on *nix OS' to $nimbleDir/bin/ # and symlink them on *nix OS' to $nimbleDir/bin/
for bin in pkgInfo.bin: for bin in pkgInfo.bin:
if not existsFile(pkgDestDir / bin): if not existsFile(pkgDestDir / bin):
display("Warning:", ("Binary '$1' was already installed from source" &
" directory. Will be overwritten.") % bin, Warning,
HighPriority)
# Copy the binary file.
filesInstalled.incl copyFileD(pkgInfo.getOutputDir(bin), filesInstalled.incl copyFileD(pkgInfo.getOutputDir(bin),
pkgDestDir / bin) pkgDestDir / bin)