post_upgrade() {
  # See FS#42798 and FS#47371
  dirmngr </dev/null &>/dev/null
  if usr/bin/pacman-key -l >/dev/null 2>&1; then
    export GNUPGHOME="$(pacman-conf.exe gpgdir)"
    usr/bin/pacman-key --populate msys2
    usr/bin/gpgconf --kill all
  fi
}
