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
|
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
|
||||||
|
|
Loading…
Reference in a new issue