post_install() {
  post_upgrade $1 0
}

post_upgrade() {
  if (( $(vercmp $2 0.6.1-3) < 0 )); then
    # Generate initial /var/lib/flatpak/repo; must be present
    # before non-root flatpak will try polkit auth
    flatpak remote-list
  fi
}
