need to explicitly run upgrade now

This commit is contained in:
Joey Hess 2011-03-19 18:58:10 -04:00
parent 91d1d935dd
commit 54c39d09ba

View file

@ -8,15 +8,18 @@
module Command.Upgrade where
import Command
import Upgrade
import Version
command :: [Command]
command = [Command "upgrade" paramNothing seek "upgrade repository layout"]
command = [standaloneCommand "upgrade" paramNothing seek
"upgrade repository layout"]
seek :: [CommandSeek]
seek = [withNothing start]
start :: CommandStartNothing
start = do
-- The actual upgrading is handled by just running any command,
-- so nothing extra needs to be done.
return $ Just $ return $ Just $ return True
r <- upgrade
checkVersion
return $ Just $ return $ Just $ return r