For the future we should consider adapting the Fedora python scripts for Debian and move the logic out of the CI script into a dedicated packaging script.