diff options
author | Joey Hess <joey@kitenet.net> | 2012-02-10 19:23:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-02-10 19:23:46 -0400 |
commit | 17fed709c83de69c5bdf190b80eaa875fe6c9c7e (patch) | |
tree | 5b8f600af3314f47b621bd637530422295cd4b24 /Backend | |
parent | 9030f684521ce8db3e9cd6a4e2a10f4edce7bfee (diff) |
addurl --fast: Verifies that the url can be downloaded (only getting its head), and records the size in the key.
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/URL.hs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Backend/URL.hs b/Backend/URL.hs index 6406095ca..b3411bac5 100644 --- a/Backend/URL.hs +++ b/Backend/URL.hs @@ -24,5 +24,9 @@ backend = Backend { fsckKey = Nothing } -fromUrl :: String -> Key -fromUrl url = stubKey { keyName = url, keyBackendName = "URL" } +fromUrl :: String -> Maybe Integer -> Key +fromUrl url size = stubKey + { keyName = url + , keyBackendName = "URL" + , keySize = size + } |