summaryrefslogtreecommitdiff
path: root/Command/AddUrl.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-10-01 14:13:53 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-10-01 14:18:57 -0400
commit55d635e356ecae2dd90d8cea355656faf3b24db1 (patch)
tree803d323f14548495c90eb402e9542a84c595a5aa /Command/AddUrl.hs
parent79e163ec1182e4b247f3a9b86f9096a96cdd299a (diff)
rename function
Diffstat (limited to 'Command/AddUrl.hs')
-rw-r--r--Command/AddUrl.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index de3bff407..32e89d20f 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -247,7 +247,7 @@ addUrlFileQuvi relaxed quviurl videourl file = do
- it later. -}
urlinfo <- Url.withUrlOptions (Url.getUrlInfo videourl)
let sizedkey = addSizeUrlKey urlinfo key
- prepGetViaTmpChecked sizedkey Nothing $ do
+ checkDiskSpaceToGet sizedkey Nothing $ do
tmp <- fromRepo $ gitAnnexTmpObjectLocation key
showOutput
ok <- Transfer.notifyTransfer Transfer.Download (Just file) $
@@ -305,7 +305,7 @@ downloadWeb url urlinfo file = do
- stable. -}
downloadWith :: (FilePath -> MeterUpdate -> Annex Bool) -> Key -> UUID -> URLString -> FilePath -> Annex (Maybe Key)
downloadWith downloader dummykey u url file =
- prepGetViaTmpChecked dummykey Nothing $ do
+ checkDiskSpaceToGet dummykey Nothing $ do
tmp <- fromRepo $ gitAnnexTmpObjectLocation dummykey
ifM (runtransfer tmp)
( do