summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Provider
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-11-18 12:42:21 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2013-11-18 12:42:21 +0100
commitf9a8443d68e5dec50bb2b11315f27befb535389f (patch)
tree6ea98279a43265721e26873e1890d86d998330ae /src/Hakyll/Core/Provider
parentc1459daf371c5f85ce9ae0dd9bc36b216ba6eb24 (diff)
downloadhakyll-f9a8443d68e5dec50bb2b11315f27befb535389f.tar.gz
Detect change if metadata file is deleted
Closes #191
Diffstat (limited to 'src/Hakyll/Core/Provider')
-rw-r--r--src/Hakyll/Core/Provider/Internal.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Hakyll/Core/Provider/Internal.hs b/src/Hakyll/Core/Provider/Internal.hs
index d566f3a..fdf1342 100644
--- a/src/Hakyll/Core/Provider/Internal.hs
+++ b/src/Hakyll/Core/Provider/Internal.hs
@@ -174,7 +174,9 @@ resourceModified :: Provider -> Identifier -> Bool
resourceModified p r = case (ri, oldRi) of
(Nothing, _) -> False
(Just _, Nothing) -> True
- (Just n, Just o) -> resourceInfoModified n > resourceInfoModified o
+ (Just n, Just o) ->
+ resourceInfoModified n > resourceInfoModified o ||
+ resourceInfoMetadata n /= resourceInfoMetadata o
where
normal = setVersion Nothing r
ri = M.lookup normal (providerFiles p)