Commit 17474f58 authored by Christiaan Baaij's avatar Christiaan Baaij
Browse files

Add comment on canonicalizePathNoFail

parent 7e364430
......@@ -456,6 +456,8 @@ depLibraryPaths inplace relative lbi clbi = do
return libPaths
where
internal pkgid = pkgid == packageId (localPkgDescr lbi)
-- 'canonicalizePath' fails on UNIX when the directory does not exists.
-- So just don't canonicalize when it doesn't exist.
canonicalizePathNoFail p = do
exists <- doesDirectoryExist p
if exists
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment