summaryrefslogtreecommitdiff
path: root/Command/AddUrl.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-15 16:57:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-15 16:59:52 -0400
commit5ff04bf2afcc62d1762adbc1c2a0374952328c0f (patch)
treea2d6bfac942582573d71ffe394f1c867688f8024 /Command/AddUrl.hs
parent35145202d2e463569989b710ab5b87f6d9a8fdc1 (diff)
tweak
Diffstat (limited to 'Command/AddUrl.hs')
-rw-r--r--Command/AddUrl.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index 1fae358b2..d9fcc17e2 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -59,7 +59,7 @@ download url file = do
ok <- Url.download url tmp
if ok
then do
- [(_, backend)] <- Backend.chooseBackends [file]
+ [(backend, _)] <- Backend.chooseBackends [file]
k <- Backend.genKey tmp backend
case k of
Nothing -> stop