Fixes #247.
This commit is contained in:
parent
767aaf56d0
commit
3d4d751a48
1 changed files with 7 additions and 2 deletions
|
|
@ -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})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue