fix info file finding
This commit is contained in:
parent
da8ca05a02
commit
de3aaa9eb0
1 changed files with 3 additions and 2 deletions
|
@ -25,7 +25,7 @@ makeinfos = do
|
||||||
version <- liftIO getChangelogVersion
|
version <- liftIO getChangelogVersion
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
liftIO $ putStrLn $ "building info files for version " ++ version ++ " in " ++ basedir
|
liftIO $ putStrLn $ "building info files for version " ++ version ++ " in " ++ basedir
|
||||||
fs <- liftIO $ dirContentsRecursiveSkipping (== "info") True (basedir </> "git-annex")
|
fs <- liftIO $ dirContentsRecursiveSkipping (const False) True (basedir </> "git-annex")
|
||||||
forM_ fs $ \f -> do
|
forM_ fs $ \f -> do
|
||||||
v <- lookupFile f
|
v <- lookupFile f
|
||||||
case v of
|
case v of
|
||||||
|
@ -56,7 +56,8 @@ makeinfos = do
|
||||||
]
|
]
|
||||||
|
|
||||||
{- Check for out of date info files. -}
|
{- Check for out of date info files. -}
|
||||||
infos <- liftIO $ dirContentsRecursiveSkipping (/= "info") True (basedir </> "git-annex")
|
infos <- liftIO $ filter (".info" `isSuffixOf`)
|
||||||
|
<$> dirContentsRecursive (basedir </> "git-annex")
|
||||||
ds <- liftIO $ forM infos (readish <$$> readFile)
|
ds <- liftIO $ forM infos (readish <$$> readFile)
|
||||||
let dis = zip infos ds
|
let dis = zip infos ds
|
||||||
let ood = filter (outofdate version) dis
|
let ood = filter (outofdate version) dis
|
||||||
|
|
Loading…
Add table
Reference in a new issue