fsck: Fix warning about not enough copies of a file, when locations are known, but are not available in currently configured remotes.
This commit is contained in:
parent
abf084f628
commit
949e4abc56
2 changed files with 5 additions and 3 deletions
|
@ -163,9 +163,9 @@ checkKey a key numcopies = do
|
||||||
checkKeyNumCopies :: Key -> Maybe Int -> Annex Bool
|
checkKeyNumCopies :: Key -> Maybe Int -> Annex Bool
|
||||||
checkKeyNumCopies key numcopies = do
|
checkKeyNumCopies key numcopies = do
|
||||||
needed <- getNumCopies numcopies
|
needed <- getNumCopies numcopies
|
||||||
remotes <- Remotes.keyPossibilities key
|
g <- Annex.gitRepo
|
||||||
inannex <- inAnnex key
|
locations <- liftIO $ keyLocations g key
|
||||||
let present = length remotes + if inannex then 1 else 0
|
let present = length locations
|
||||||
if present < needed
|
if present < needed
|
||||||
then do
|
then do
|
||||||
warning $ note present needed
|
warning $ note present needed
|
||||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -5,6 +5,8 @@ git-annex (0.10) UNRELEASED; urgency=low
|
||||||
to control the number of copies to retain of different types of files.
|
to control the number of copies to retain of different types of files.
|
||||||
* Bugfix: Always correctly handle gitattributes when in a subdirectory of
|
* Bugfix: Always correctly handle gitattributes when in a subdirectory of
|
||||||
the repository.
|
the repository.
|
||||||
|
* fsck: Fix warning about not enough copies of a file, when locations
|
||||||
|
are known, but are not available in currently configured remotes.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Sun, 28 Nov 2010 14:19:15 -0400
|
-- Joey Hess <joeyh@debian.org> Sun, 28 Nov 2010 14:19:15 -0400
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue