git-annex: GHC compatibility
This commit is contained in:
parent
0b7ed680f9
commit
fe944a96d3
1 changed files with 7 additions and 6 deletions
|
@ -133,12 +133,13 @@ store r buprepo = byteStorer $ \k b p -> do
|
|||
showOutput -- make way for bup output
|
||||
let cmd = proc "bup" (toCommand params)
|
||||
quiet <- commandProgressDisabled
|
||||
let runner = if quiet
|
||||
then feedWithQuietOutput
|
||||
else withHandle StdinHandle
|
||||
liftIO $ runner createProcessSuccess cmd $ \h -> do
|
||||
meteredWrite p h b
|
||||
return True
|
||||
if quiet
|
||||
then liftIO $ feedWithQuietOutput createProcessSuccess cmd $ \h -> do
|
||||
meteredWrite p h b
|
||||
return True
|
||||
else liftIO $ withHandle StdinHandle createProcessSuccess cmd $ \h -> do
|
||||
meteredWrite p h b
|
||||
return True
|
||||
|
||||
retrieve :: BupRepo -> Retriever
|
||||
retrieve buprepo = byteRetriever $ \k sink -> do
|
||||
|
|
Loading…
Add table
Reference in a new issue