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

View file

@ -482,8 +482,13 @@ 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):
filesInstalled.incl copyFileD(pkgInfo.getOutputDir(bin), display("Warning:", ("Binary '$1' was already installed from source" &
pkgDestDir / bin) " directory. Will be overwritten.") % bin, Warning,
HighPriority)
# Copy the binary file.
filesInstalled.incl copyFileD(pkgInfo.getOutputDir(bin),
pkgDestDir / bin)
let currentPerms = getFilePermissions(pkgDestDir / bin) let currentPerms = getFilePermissions(pkgDestDir / bin)
setFilePermissions(pkgDestDir / bin, currentPerms + {fpUserExec}) setFilePermissions(pkgDestDir / bin, currentPerms + {fpUserExec})