need to explicitly run upgrade now
This commit is contained in:
parent
91d1d935dd
commit
54c39d09ba
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue