From f9a8443d68e5dec50bb2b11315f27befb535389f Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Mon, 18 Nov 2013 12:42:21 +0100 Subject: Detect change if metadata file is deleted Closes #191 --- src/Hakyll/Core/Provider/Internal.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Hakyll/Core/Provider') 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) -- cgit v1.2.3