add missing case for unknown size with normal output

This was lost in previous change, causing a crash in that case.
This commit is contained in:
Joey Hess 2016-10-05 15:10:24 -04:00
parent a747373b40
commit 672e53bded
No known key found for this signature in database
GPG key ID: C910D9222512E3C7

View file

@ -33,6 +33,7 @@ metered :: Maybe MeterUpdate -> Key -> (MeterUpdate -> Annex a) -> Annex a
metered othermeter key a = withMessageState $ go (keySize key)
where
go _ (MessageState { outputType = QuietOutput }) = nometer
go Nothing (MessageState { outputType = NormalOutput }) = nometer
go (Just size) (MessageState { outputType = NormalOutput, concurrentOutputEnabled = False }) = do
showOutput
(progress, meter) <- mkmeter size