piuparts bug when running sbuild
When running sbuild with piuparts config:
$run_piuparts = 1;
$piuparts_opts = ['--no-eatmydata', '--distribution=%r', '--fake-essential-packages=systemd-sysv'];
piuparts fails to run with error log:
piuparts
--------
0m0.0s INFO: Running non-root. Reexecuting in a usernamespace.
0m0.0s INFO: ------------------------------------------------------------------------------
0m0.0s INFO: To quickly glance what went wrong, scroll down to the bottom of this logfile.
0m0.0s INFO: FAQ available at https://wiki.debian.org/piuparts/FAQ
0m0.0s INFO: The FAQ also explains how to contact us in case you think piuparts is wrong.
0m0.0s INFO: ------------------------------------------------------------------------------
0m0.0s INFO: piuparts version 1.6.0 starting up.
0m0.0s INFO: Command line arguments: /usr/bin/piuparts --no-eatmydata --distribution=unstable --fake-essential-packages=systemd-sysv /home/${USER}/pkgs/rsync_3.4.1+ds1-3_amd64.changes
0m0.0s INFO: Running on: Linux debian 6.12.19-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.19-1 (2025-03-16) x86_64
/usr/bin/piuparts:2375: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
logging.warn(changes_path + " is not readable. Skipping.")
0m0.0s WARNING: /home/${USER}/pkgs/rsync_3.4.1+ds1-3_amd64.changes is not readable. Skipping.
Piuparts caught exception, exiting...
------------------------------------------------------------
Traceback (most recent call last):
File "/usr/bin/piuparts", line 3749, in <module>
main()
~~~~^^
File "/usr/bin/piuparts", line 3734, in main
process_packages(package_list)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/bin/piuparts", line 3605, in process_packages
packages = get_package_names_from_package_files(package_list)
File "/usr/bin/piuparts", line 2344, in get_package_names_from_package_files
for filename in package_files:
^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
------------------------------------------------------------
0m0.0s ERROR: piuparts run ends.
E: Piuparts run failed.
I already talked to @samueloph about this and also reported it as a bug against piuparts but I thought it was worth mentioning here too.