move code from Command.Fsck
Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
3c042606c2
commit
3936599885
3 changed files with 42 additions and 37 deletions
|
@ -96,7 +96,7 @@ perform onlyremovesize o file oldkey oldbackend newbackend = go =<< genkey (fast
|
|||
| knowngoodcontent = finish (removesize newkey)
|
||||
| otherwise = stopUnless checkcontent $
|
||||
finish (removesize newkey)
|
||||
checkcontent = Command.Fsck.checkBackend oldbackend oldkey Command.Fsck.KeyPresent afile
|
||||
checkcontent = Command.Fsck.checkBackend oldbackend oldkey KeyPresent afile
|
||||
finish newkey = ifM (Command.ReKey.linkKey file oldkey newkey)
|
||||
( do
|
||||
_ <- copyMetaData oldkey newkey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue