fix parsing of unused log; keys can contain spaces

This commit is contained in:
Joey Hess 2014-02-08 15:27:11 -04:00
parent b9e6cb07ad
commit 4f7e72b51a

View file

@ -86,7 +86,9 @@ readUnusedLog prefix = do
_ -> Nothing
where
(sint, rest) = separate (== ' ') line
(skey, ts) = separate (== ' ') rest
(rts, rskey) = separate (== ' ') (reverse rest)
skey = reverse rskey
ts = reverse rts
readUnusedMap :: FilePath -> Annex UnusedMap
readUnusedMap = log2map <$$> readUnusedLog