==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...
Packages (3): haskell-polyparse-1.9-58 haskell-text-1.1.0.1-3 haskell-cpphs-1.18.4-3
Total Installed Size: 37.85 MiB
:: Proceed with installation? [Y/n]
(3/3) checking keys in keyring [########################################] 100%
(3/3) checking package integrity [########################################] 100%
:: File /var/cache/pacman/pkg/haskell-polyparse-1.9-58-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/haskell-cpphs-1.18.4-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (checksum))
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.
==> ERROR: Build failed, check /home/rwallace/Development/habs/x86_64-chroot/build/build
*** ERROR: Trapped ERR, something went very wrong.
If I just restart the build, it appears to download the problem dependency instead of using the locally built package.