diff options
Diffstat (limited to 'Logs/Web.hs')
-rw-r--r-- | Logs/Web.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Logs/Web.hs b/Logs/Web.hs index 1d16e10b3..f31215a4f 100644 --- a/Logs/Web.hs +++ b/Logs/Web.hs @@ -9,6 +9,7 @@ module Logs.Web ( URLString, webUUID, getUrls, + getUrlsWithPrefix, setUrlPresent, setUrlMissing, knownUrls, @@ -46,6 +47,9 @@ getUrls key = go $ urlLogFile key : oldurlLogs key then go ls else return us +getUrlsWithPrefix :: Key -> String -> Annex [URLString] +getUrlsWithPrefix key prefix = filter (prefix `isPrefixOf`) <$> getUrls key + setUrlPresent :: Key -> URLString -> Annex () setUrlPresent key url = do us <- getUrls key |