pkgConf is a directory.
This commit is contained in:
parent
0fa81bc26d
commit
1a792c4943
@ -40,7 +40,7 @@ findCradle Nothing strver = do
|
|||||||
Just (cdir,cfile) -> do
|
Just (cdir,cfile) -> do
|
||||||
let sbox = cdir </> "cabal-dev/"
|
let sbox = cdir </> "cabal-dev/"
|
||||||
pkgConf = packageConfName sbox strver
|
pkgConf = packageConfName sbox strver
|
||||||
exist <- doesFileExist pkgConf
|
exist <- doesDirectoryExist pkgConf
|
||||||
return Cradle {
|
return Cradle {
|
||||||
cradleCurrentDir = wdir
|
cradleCurrentDir = wdir
|
||||||
, cradleCabalDir = Just cdir
|
, cradleCabalDir = Just cdir
|
||||||
@ -66,7 +66,7 @@ packageConfName path ver = path </> "packages-" ++ ver ++ ".conf"
|
|||||||
checkPackageConf :: FilePath -> String -> IO FilePath
|
checkPackageConf :: FilePath -> String -> IO FilePath
|
||||||
checkPackageConf path ver = do
|
checkPackageConf path ver = do
|
||||||
let conf = packageConfName path ver
|
let conf = packageConfName path ver
|
||||||
exist <- doesFileExist conf
|
exist <- doesDirectoryExist conf
|
||||||
if exist then
|
if exist then
|
||||||
return conf
|
return conf
|
||||||
else
|
else
|
||||||
|
@ -1 +0,0 @@
|
|||||||
dummy
|
|
Loading…
Reference in New Issue
Block a user