fix logic error introduced yesterday
This commit is contained in:
parent
a8e1b3ad42
commit
1722c23f56
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ rsyncHelper callback params = do
|
||||||
- filesystem. Then cp could be faster. -}
|
- filesystem. Then cp could be faster. -}
|
||||||
rsyncOrCopyFile :: [CommandParam] -> FilePath -> FilePath -> MeterUpdate -> Annex Bool
|
rsyncOrCopyFile :: [CommandParam] -> FilePath -> FilePath -> MeterUpdate -> Annex Bool
|
||||||
rsyncOrCopyFile rsyncparams src dest p =
|
rsyncOrCopyFile rsyncparams src dest p =
|
||||||
ifM (sameDeviceIds src dest) (dorsync, docopy)
|
ifM (sameDeviceIds src dest) (docopy, dorsync)
|
||||||
where
|
where
|
||||||
sameDeviceIds a b = (==) <$> (getDeviceId a) <*> (getDeviceId b)
|
sameDeviceIds a b = (==) <$> (getDeviceId a) <*> (getDeviceId b)
|
||||||
getDeviceId f = deviceID <$> liftIO (getFileStatus $ parentDir f)
|
getDeviceId f = deviceID <$> liftIO (getFileStatus $ parentDir f)
|
||||||
|
|
Loading…
Add table
Reference in a new issue