fsck: Print warnings to stderr; --quiet can now be used to only see problems.

This commit is contained in:
Joey Hess 2010-11-15 18:37:49 -04:00
parent a5e7f5329f
commit 0893820812
7 changed files with 16 additions and 14 deletions

View file

@ -175,12 +175,12 @@ checkKeyNumCopies key = do
let present = length remotes + if inannex then 1 else 0
if (present < needed)
then do
showLongNote $ note present needed
warning $ note present needed
return False
else return True
where
note 0 _ = "** No known copies of the file exist!"
note present needed =
"Only " ++ show present ++ " of " ++ show needed ++
" copies exist. " ++
" copies of "++show key++" exist. " ++
"Run git annex get somewhere else to back it up."