summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-12-20 18:14:20 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-12-20 23:24:05 -0400
commit8e2f74f7ab188b72b1053140f28f1f4a6a792675 (patch)
tree7dcbf90fb221987f3fbbd4f2ecaba7df7ed6842a /Utility
parent815d1318d7a54836f65ba4b72703808959223bb2 (diff)
update
Diffstat (limited to 'Utility')
-rw-r--r--Utility/Url.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/Url.hs b/Utility/Url.hs
index 7ce43d9bd..f215a1ebd 100644
--- a/Utility/Url.hs
+++ b/Utility/Url.hs
@@ -7,6 +7,7 @@
module Utility.Url (
exists,
+ canDownload,
download,
get
) where
@@ -32,6 +33,9 @@ exists url =
(2,_,_) -> return True
_ -> return False
+canDownload :: IO Bool
+canDownload = (||) <$> inPath "wget" <*> inPath "curl"
+
{- Used to download large files, such as the contents of keys.
-
- Uses wget or curl program for its progress bar. (Wget has a better one,