propellor spin

This commit is contained in:
Joey Hess 2014-03-31 14:24:15 -04:00
parent 5c814d3780
commit 3690257a9c
Failed to extract signature
1 changed files with 3 additions and 2 deletions

View File

@ -81,7 +81,7 @@ spin host = do
-- Display remaining output.
void $ tryIO $ forever $
putStrLn =<< hGetLine fromh
showremote =<< hGetLine fromh
hClose fromh
where
@ -104,9 +104,10 @@ spin host = do
l <- hGetLine h
case readish =<< fromMarked statusMarker l of
Nothing -> do
putStrLn l
showremote l
getstatus h
Just status -> return status
showremote s = putStrLn $ host ++ ": " ++ s
data BootStrapStatus = HaveKeyRing | NeedKeyRing
deriving (Read, Show, Eq)