where indentation
This commit is contained in:
parent
f0dd6d00d1
commit
ebd576ebcb
30 changed files with 804 additions and 812 deletions
|
@ -31,9 +31,9 @@ start file (key, oldbackend) = do
|
|||
showStart "migrate" file
|
||||
next $ perform file key oldbackend newbackend
|
||||
else stop
|
||||
where
|
||||
choosebackend Nothing = Prelude.head <$> orderedList
|
||||
choosebackend (Just backend) = return backend
|
||||
where
|
||||
choosebackend Nothing = Prelude.head <$> orderedList
|
||||
choosebackend (Just backend) = return backend
|
||||
|
||||
{- Checks if a key is upgradable to a newer representation. -}
|
||||
{- Ideally, all keys have file size metadata. Old keys may not. -}
|
||||
|
@ -49,10 +49,10 @@ perform file oldkey oldbackend newbackend = do
|
|||
( maybe stop go =<< genkey
|
||||
, stop
|
||||
)
|
||||
where
|
||||
go newkey = stopUnless (Command.ReKey.linkKey oldkey newkey) $
|
||||
next $ Command.ReKey.cleanup file oldkey newkey
|
||||
genkey = do
|
||||
content <- inRepo $ gitAnnexLocation oldkey
|
||||
let source = KeySource { keyFilename = file, contentLocation = content }
|
||||
liftM fst <$> genKey source (Just newbackend)
|
||||
where
|
||||
go newkey = stopUnless (Command.ReKey.linkKey oldkey newkey) $
|
||||
next $ Command.ReKey.cleanup file oldkey newkey
|
||||
genkey = do
|
||||
content <- inRepo $ gitAnnexLocation oldkey
|
||||
let source = KeySource { keyFilename = file, contentLocation = content }
|
||||
liftM fst <$> genKey source (Just newbackend)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue