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