Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fredrik Wieczerkowski
curry-tools
Commits
6d0c57c4
Commit
6d0c57c4
authored
Jan 12, 2018
by
Michael Hanus
Browse files
Tools updated
parent
5473376c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cpm/src/CPM/PackageCopy.curry
View file @
6d0c57c4
...
...
@@ -193,16 +193,16 @@ getLocalPackageSpec cfg dir = do
"' generated"
succeedIO homepkgdir
searchLocalSpec m dir = do
existsLocal <- doesFileExist $ dir </> "package.json"
searchLocalSpec m
s
dir = do
existsLocal <- doesFileExist $
s
dir </> "package.json"
if existsLocal
then return (Just dir)
then return (Just
s
dir)
else do
debugMessage ("No package.json in " ++ show dir ++ ", trying " ++
show (dir </> ".."))
parentExists <- doesDirectoryExist $ dir </> ".."
debugMessage ("No package.json in " ++ show
s
dir ++ ", trying " ++
show (
s
dir </> ".."))
parentExists <- doesDirectoryExist $
s
dir </> ".."
if m>0 && parentExists
then searchLocalSpec (m-1) $ dir </> ".."
then searchLocalSpec (m-1) $
s
dir </> ".."
else return Nothing
--- Resolves the dependencies for a package copy and fills the package caches.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment