#990442 debmirror: fails to handle multiple keyrings specified in a config-file

#990442#5
Date:
2021-06-29 09:08:36 UTC
From:
To:
Hi,

debmirror fails to handle multiple keyrings specified in a config-file.

config-file:
@keyrings="/etc/apt/trusted.gpg.d/key-a.gpg,/etc/apt/trusted.gpg.d/key-b.gpg";

fails with:
gpgv: keyblock resource
'/etc/apt/trusted.gpg.d/key-a.gpg,/etc/apt/trusted.gpg.d/key-b.gpg':
No such file or directory

The attached patch fixes it.

Regards, Stefan

#990442#10
Date:
2021-07-04 18:50:56 UTC
From:
To:
In a config file, couldn't you just write:

  @keyrings = ("/etc/apt/trusted.gpg.d/key-a.gpg", "/etc/apt/trusted.gpg.d/key-b.gpg");

?

My concern about applying your patch is that it would break the
(admittedly probably rare, but perfectly valid) case where the path to a
keyring file contains a comma.  While it's true that we do manual
comma-separation of other values (release names, section names,
architecture names, rsync-extra directory names), those are all cases
where the individual values themselves may not contain commas.

#990442#15
Date:
2021-08-02 08:58:36 UTC
From:
To:
Hi Colin,

in view of the other comma-separated values, it looked like an error.
At that moment, I wasn't aware that path names can contain commas.
Specifying several key rings in the configuration file works. Feel
free to close this bug report.

Many Thanks, Stefan

Am So., 4. Juli 2021 um 20:51 Uhr schrieb Colin Watson <cjwatson@debian.org>: