jib / cpanplus-devel

11 stars 10 forks source link

Always re-fetch CHECKSUMS if fetchdir is set #8

Closed tsch closed 12 years ago

tsch commented 12 years ago

If the user specifies a fetchdir in the configuration, then every file fetched from CPAN is placed directly in the fetchdir, not in an author-specific subdir. Thus, there can only be one CHECKSUMS file and we need to re-fetch it every time we want to test a checksum.

I consider this a hack to get checksum testing working. Ideally, I think CPANPLUS would simply create the same author-specific subdir structure under fetchdir that it creates when fetchdir is not set. I tried implementing this but encountered too many problems due to things assuming that, with fetchdir set, things are stored in the top-level.