propellor spin
This commit is contained in:
parent
53ece3a155
commit
5c814d3780
|
@ -100,9 +100,13 @@ spin host = do
|
||||||
, "./propellor --boot " ++ host
|
, "./propellor --boot " ++ host
|
||||||
]
|
]
|
||||||
getstatus :: Handle -> IO BootStrapStatus
|
getstatus :: Handle -> IO BootStrapStatus
|
||||||
getstatus h = maybe (getstatus h) return
|
getstatus h = do
|
||||||
. (readish <=< fromMarked statusMarker)
|
l <- hGetLine h
|
||||||
=<< hGetLine h
|
case readish =<< fromMarked statusMarker l of
|
||||||
|
Nothing -> do
|
||||||
|
putStrLn l
|
||||||
|
getstatus h
|
||||||
|
Just status -> return status
|
||||||
|
|
||||||
data BootStrapStatus = HaveKeyRing | NeedKeyRing
|
data BootStrapStatus = HaveKeyRing | NeedKeyRing
|
||||||
deriving (Read, Show, Eq)
|
deriving (Read, Show, Eq)
|
||||||
|
|
Loading…
Reference in New Issue