factor out common imports
no code changes
This commit is contained in:
parent
003a604a6e
commit
8ef2095fa0
83 changed files with 264 additions and 619 deletions
|
@ -7,23 +7,11 @@
|
|||
|
||||
module Backend.SHA (backends) where
|
||||
|
||||
import Control.Monad.State
|
||||
import Data.String.Utils
|
||||
import System.Cmd.Utils
|
||||
import System.IO
|
||||
import System.Directory
|
||||
import Data.Maybe
|
||||
import System.Posix.Files
|
||||
import System.FilePath
|
||||
|
||||
import Messages
|
||||
import AnnexCommon
|
||||
import qualified Annex
|
||||
import Locations
|
||||
import Content
|
||||
import Types
|
||||
import Types.Backend
|
||||
import Types.Key
|
||||
import Utility.SafeCommand
|
||||
import qualified Build.SysConfig as SysConfig
|
||||
|
||||
type SHASize = Int
|
||||
|
@ -110,7 +98,7 @@ keyValueE size file = keyValue size file >>= maybe (return Nothing) addE
|
|||
{- A key's checksum is checked during fsck. -}
|
||||
checkKeyChecksum :: SHASize -> Key -> Annex Bool
|
||||
checkKeyChecksum size key = do
|
||||
g <- Annex.gitRepo
|
||||
g <- gitRepo
|
||||
fast <- Annex.getState Annex.fast
|
||||
let file = gitAnnexLocation g key
|
||||
present <- liftIO $ doesFileExist file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue