Terminate copy iteration when hitting in-place nimbleDir (#429)
* terminate copy iteration when hitting in-place nimbleDir; fixes #428 * investigate travis issue * more investigations * more investigations * fix nim version issue
This commit is contained in:
parent
0e09f69334
commit
209fca53e7
3 changed files with 19 additions and 2 deletions
|
|
@ -510,13 +510,13 @@ proc iterInstallFiles*(realDir: string, pkgInfo: PackageInfo,
|
|||
for kind, file in walkDir(realDir):
|
||||
if kind == pcDir:
|
||||
let skip = pkgInfo.checkInstallDir(realDir, file)
|
||||
|
||||
if skip: continue
|
||||
# we also have to stop recursing if we reach an in-place nimbleDir
|
||||
if file == options.getNimbleDir().expandFilename(): continue
|
||||
|
||||
iterInstallFiles(file, pkgInfo, options, action)
|
||||
else:
|
||||
let skip = pkgInfo.checkInstallFile(realDir, file)
|
||||
|
||||
if skip: continue
|
||||
|
||||
action(file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue