Add @hvr's mirror

This commit is contained in:
Michael Snoyman 2016-09-22 10:10:54 +03:00
parent e53b6f50b2
commit 7db1e96d9c

View File

@ -44,8 +44,12 @@ mkUpdateMirrorStatus = mkAutoUpdate defaultUpdateSettings
[ "http://hackage.fpcomplete.com/00-index.tar.gz"
, "http://hackage.fpcomplete.com/01-index.tar.gz"
]
otherMods <- mapM getLastModifiedHTTP
[ "http://objects-us-west-1.dream.io/hackage-mirror/01-index.tar.gz"
, "http://objects-us-west-1.dream.io/hackage-mirror/timestamp.json"
]
let nonHackageMods = gitMods ++ tarballMods
allMods = ("Hackage", hackageTime) : nonHackageMods
allMods = ("Hackage", hackageTime) : nonHackageMods ++ otherMods
biggestDiff = Prelude.maximum $ map
(\(_, other) -> diffUTCTime hackageTime other)
nonHackageMods