summaryrefslogtreecommitdiff
path: root/Remote
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-10-20 15:11:01 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-10-20 15:11:01 -0400
commitc298ca5566ccfbf29917202469d84676a531dd85 (patch)
treefb43d2a7072a0427d1e91e5c31241e673363fe56 /Remote
parentbbbb37e63f89f5ba786e2a40ca9f0693e3796c70 (diff)
glacier: Fix pipe setup when calling glacier-cli to retrieve an object.
Diffstat (limited to 'Remote')
-rw-r--r--Remote/Glacier.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Remote/Glacier.hs b/Remote/Glacier.hs
index ba3cc558f..70bcec33f 100644
--- a/Remote/Glacier.hs
+++ b/Remote/Glacier.hs
@@ -141,7 +141,10 @@ retrieve r k sink = go =<< glacierEnv c u
]
go Nothing = error "cannot retrieve from glacier"
go (Just e) = do
- let cmd = (proc "glacier" (toCommand params)) { env = Just e }
+ let cmd = (proc "glacier" (toCommand params))
+ { env = Just e
+ , std_out = CreatePipe
+ }
(_, Just h, _, pid) <- liftIO $ createProcess cmd
-- Glacier cannot store empty files, so if the output is
-- empty, the content is not available yet.