This commit is contained in:
Joey Hess 2011-01-27 17:58:30 -04:00
parent 167523f09d
commit 4f9336bb60
5 changed files with 6 additions and 6 deletions

View file

@ -187,7 +187,7 @@ filterFiles l = do
let regexp = compile (toregex exclude) []
return $ filter (notExcluded regexp) l'
where
notState f = not $ isPrefixOf stateDir f
notState f = not $ stateDir `isPrefixOf` f
notExcluded r f = case match r f [] of
Nothing -> True
Just _ -> False