Externalized from nikola/htpc-updater.