Bug#916095: lintian: False positive: license-problem-gfdl-invariants
[2018-12-20 20:19] Chris Lamb <lamby@debian.org>
> Okay but:
>
> > > > with no invariant sections, no Front-Cover and no Back-Cover texts
> > > > with no Invariant Sections, no Front-Cover and Back-Cover texts
>
> … has "texts". Can you please provide the full text here or simply
> modify the patch? It should be simple enough given my patch? :)
Wish regex could tell me prefix of input string that matched.
Still, this works for my case:
--- checks/cruft.pm 2018-12-09 10:03:32.112549144 +0000
+++ /usr/share/lintian/checks/cruft.pm 2018-12-21 19:11:44.679951032 +0000
@@ -1378,8 +1378,8 @@
if(
$gfdlsections =~ m/\A
with [ ] no [ ] invariant [ ] sections[ ]?,
- [ ]? no [ ] front(?:[ ]?-[ ]?|[ ])cover [ ] texts[ ]?,?
- [ ]? and [ ] no [ ] back(?:[ ]?-?[ ]?|[ ])cover [ ] texts
+ [ ]? no [ ] front(?:[ ]?-[ ]?|[ ])cover [ ] (?:texts)?[ ]?,?
+ [ ]? and [ ] (?:no [ ])? back(?:[ ]?-?[ ]?|[ ])cover [ ] texts
\Z/xso
) {
return 0;
Reply to: