Avoiding things like File::Find in debsums is rather difficult. There's another possibility: we could just have debsums bail out cleanly (with an error message) if File::Find can't be imported. apt will get round to running it again at a more convenient time anyway, and it will catch up with all the work it needs to do then.
The one wart is that debsums will have to exit 0 in this case to avoid breaking apt. That's unpleasant, but I think it's a necessary evil.
Avoiding things like File::Find in debsums is rather difficult. There's another possibility: we could just have debsums bail out cleanly (with an error message) if File::Find can't be imported. apt will get round to running it again at a more convenient time anyway, and it will catch up with all the work it needs to do then.
The one wart is that debsums will have to exit 0 in this case to avoid breaking apt. That's unpleasant, but I think it's a necessary evil.