Bug#833585: lintian: Check presence of upstream signature if signing key available
Chris Lamb:
> Hi,
> 
>> lintian: Check presence of upstream signature if signing key
>> available
> 
> So, I just had a go at implementing this.
Thanks for working on this. :)
> However, I think I'm
> misunderstanding something fundamental about how Lintian's Collect
> classes work.
> 
> Namely, checks/changes-file.pm will only "see" .changes-related stuff;
> if I want to check the source package for whether the signing key exists
> I'll need a Lintian::Collect::Source…
> but I can't quite see how to access that from within changes-file.pm.
> 
You need the $group parameter (the 5th parameter to the run sub).  It is
an instance of L::ProcessableGroup, which can provide access a
L::Proccessable for the source package (if provided to the lintian call,
otherwise it will be undef).
The L::Processable has an "info" paramenter, which gives you the
L::Collect::Source you want. :)
The "checks/group-checks.pm" file uses something similar to this and
might possibly be a useful reference.
Thanks,
~Niels
Reply to: