In the IRC channel, agregory immediately pointed out a pretty obvious bug I missed: the third patch caues pacman to print "downloading <reponame>" even if the repository is up-to-date. My apologies; I don't know how I missed that, and I'll put it right.