[darcs-devel] [issue1908] darcs complains if there is no global cache

Petr Ročkai bugs at darcs.net
Sun Aug 8 12:20:26 UTC 2010


Petr Ročkai <me at mornfall.net> added the comment:

This is actually a major regression, since I am seeing this, if the 
global cache does not exist (running cabal test get-http -- you need 
lighttpd for that, and you need to run *only* that -- an earlier test 
would have created the global cache...).

+ darcs get http://localhost:23032/R S
Hash failure in 
http://localhost:23032/R/_darcs/pristine.hashed/87428fc522803d31065e7bce
3cf03fe475096631e5e07bbd7a0fde60c4cf25c7

darcs failed:  Couldn't fetch 
`87428fc522803d31065e7bce3cf03fe475096631e5e07bbd7a0fde60c4cf25c7'
in subdir pristine.hashed from sources:

For all I can tell, this is because the code tries to check cache 
reachability *before* trying to create it, which consequently leads it 
to to forget to write the actual file it intended to write.

Well, seems like an easy fix, submitting now... please review ASAP.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1908>
__________________________________


More information about the darcs-devel mailing list