propellor spin

This commit is contained in:
Joey Hess 2014-11-22 00:44:13 -04:00
parent 083b82d810
commit 0d65fdeb1d
Failed to extract signature
1 changed files with 11 additions and 8 deletions

View File

@ -27,10 +27,12 @@ import Utility.SafeCommand
-- running the updateServer
update :: IO ()
update = do
whenM hasOrigin $
req NeedRepoUrl repoUrlMarker setRepoUrl
makePrivDataDir
req NeedPrivData privDataMarker $
writeFileProtected privDataLocal
whenM hasOrigin $
req NeedGitPush gitPushMarker $ \_ -> do
hin <- dup stdInput
hout <- dup stdOutput
@ -76,6 +78,7 @@ updateServer hn hst connect = connect go
hClose toh
hClose fromh
sendPrecompiled hn
loop
Nothing -> return ()
sendRepoUrl :: Handle -> IO ()