Fixes breaking changes in 0.18.0.

This commit is contained in:
Dominik Picheta 2018-01-27 15:36:45 +00:00
commit fd84b139bd

View file

@ -463,7 +463,7 @@ proc iterFilesWithExt(dir: string, pkgInfo: PackageInfo,
if kind == pcDir:
iterFilesWithExt(path, pkgInfo, action)
else:
if path.splitFile.ext[1 .. ^1] in pkgInfo.installExt:
if path.splitFile.ext.substr(1) in pkgInfo.installExt:
action(path)
proc iterFilesInDir(dir: string, action: proc (f: string)) =