Bug#1021773: libconfig-model-dpkg-perl: tweak example in docs for fix.(scanned.)copyright does not work

Dominique Dumont dod at debian.org
Wed Oct 19 18:31:07 BST 2022


On Friday, 14 October 2022 15:07:56 CEST you wrote:
> The docs for Config::Model::Dpkg::Copyright list dthis example for
> tweaking:
> 
>         ! Files:'*' Copyright=~s/\s*".*//

Arg, I got it. This behavior is due to a limitation of Config::Model::Loader 
where only double quote can be used.

Here, you've used single quote with Files: argument. So cme has created a 
Files entry with «'*'» instead of «*». And this entry has no copyright 
statement, hence the error.

This error message does mention the problematic entrym but it's hard to see 
because of the single within double quotes:

> Note: loading debian/fix.scanned.copyright fixes from copyright fix files
> Configuration item 'Dpkg::Copyright' has a user error:
>         Error while applying fix.scanned.copyright file:
>         Configuration item 'Files:"'*'" Copyright' has a wrong value:
>         Undefined mandatory value.

I'm updating Config::Model::Loader to allow single and double quote.

But this has a side effect: a s/// instruction with space will have to be 
quoted. 

The following should work with current and future version of 
Config::Model::Loader

! Files:"*" Copyright=~"s/, Free Software$/, Free Software Foundation, Inc./"

HTH



More information about the pkg-perl-maintainers mailing list