--find-pkg load dependencies

This commit is contained in:
Nicolas Biri 2020-05-03 09:43:33 +02:00
parent 45d02a11b7
commit 07744b5f69

View File

@ -486,6 +486,7 @@ findIpkg fname
pkg <- addFields fs (initPkgDesc pname)
setSourceDir (sourcedir pkg)
processOptions (options pkg)
loadDependencies (depends pkg)
case fname of
Nothing => pure Nothing
Just src =>
@ -499,3 +500,5 @@ findIpkg fname
dropHead str [] = []
dropHead str (x :: xs)
= if x == str then xs else x :: xs
loadDependencies : List String -> Core ()
loadDependencies = traverse_ addPkgDir