[csw-maintainers] Suggested description check for checkpkg

Peter Bonivart bonivart at opencsw.org
Wed Dec 29 13:30:39 CET 2010


Some packages have hyphens and double colons in the DESCRIPTION field
and it causes some weirdness in the descriptions file. One example is
pm_perl6slurp which has a GAR tag like this: "DESCRIPTION =
Perl6::Slurp - Implements the Perl 6 'slurp' built-in". This generates
the following line in the descriptions file:

pm_perl6slurp - Perl6-Slurp: Perl6::Slurp - Implements the Perl 6
'slurp' built-in

GAR already adds the perl module name to the description so this
causes it to be repeated. Also " - " (space hyphen space) is used as a
separator between catalog name and description in the description file
so this gets us multiple separators in a file that should only have
two fields, not good.

I suggest that an error is generated in checkpkg if the DESCRIPTION contains:

1. double colons. GAR adds module names with hyphens, not double colons.
2. more than one instance of " - " (space hyphen space).

As reference, pm_probeperl uses this tag: "DESCRIPTION = Information
about the currently running perl", which produces this line (what we
want):

pm_probeperl - Probe-Perl: Information about the currently running perl

/peter


More information about the maintainers mailing list