[Piuparts-devel] Bug#1089667: piuarts: fails when (path to) changes file is not world readable

Jochen Sprickerhof jspricke at debian.org
Wed Dec 11 07:10:50 GMT 2024


Hi,

* Rob Browning <rlb at defaultvalue.org> [2024-12-10 15:34]:
>I'm not sure if this is intended to work, but with a home directory that
>doesn't allow access by "other"s, i.e. "chmod o-rwx ~", an unshare
>sbuild attempt fails like this here:
>
>  0m0.0s WARNING: /home/rlb/deb/lockfile-progs/lockfile-progs_0.1.21~1.gbp7eb6ac_amd64.changes is not readable. Skipping.
>
>  Piuparts caught exception, exiting...
>  ------------------------------------------------------------
>  Traceback (most recent call last):
>    File "/usr/bin/piuparts", line 3720, in <module>
>      main()
>    File "/usr/bin/piuparts", line 3705, in main
>      process_packages(package_list)
>    File "/usr/bin/piuparts", line 3576, in process_packages
>      packages = get_package_names_from_package_files(package_list)
>                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    File "/usr/bin/piuparts", line 2322, in get_package_names_from_package_files
>      for filename in package_files:
>                      ^^^^^^^^^^^^^
>  TypeError: 'NoneType' object is not iterable

A simple way to reproduce this is:

apt source -b hostname
chmod o-r hostname_3.25_amd64.changes
piuparts hostname_3.25_amd64.changes

Cheers Jochen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20241211/b17af28d/attachment.sig>


More information about the Piuparts-devel mailing list