Discussion:
Bug#865531: lintian: description of testsuite-autopkgtest-missing is unhelpful/incorrect
Chris Lamb
2017-07-28 21:05:14 UTC
Permalink
Hi,
lintian: description of testsuite-autopkgtest-missing is
unhelpful/incorrect
I had a look at this earlier but in the code I can't seem to
differentiate between:

$info->field('testsuite')

… returning the value from the *dsc* and the value set in the
debian/control file. :)

I think I need this to work out whether we have a pointless value
set in debian/control and the one automatically added by dpkg (since
1.17.11, if anyone is curious).


Regards,
--
,''`.
: :' : Chris Lamb
`. `'` ***@debian.org / chris-lamb.co.uk
`-
Niels Thykier
2017-07-28 21:51:00 UTC
Permalink
Post by Chris Lamb
Hi,
lintian: description of testsuite-autopkgtest-missing is
unhelpful/incorrect
I had a look at this earlier but in the code I can't seem to
$info->field('testsuite')
… returning the value from the *dsc* and the value set in the
debian/control file. :)
I think I need this to work out whether we have a pointless value
set in debian/control and the one automatically added by dpkg (since
1.17.11, if anyone is curious).
Regards,
Hi,

Here goes. :)

On a L::Collect::Source:

* $info->field => .dsc
* $info->source_field => d/control

There is usually an overlap as dpkg-source copies most fields from
d/control into the .dsc.

Related, there is also $source_info->binary_field vs.
$binary_info->field (i.e. L::Collect::Binary). More or less same case,
except here you can also see unexpected substvars in the binary_field case.

Thanks,
~Niels
Chris Lamb
2017-07-29 21:31:28 UTC
Permalink
tags 865531 + pending
thanks

Fixed in Git:

https://anonscm.debian.org/git/lintian/lintian.git/commit/?id=ce7942a08681a6e67a1a8449effa61fe612e3769

I've also added a `unnecessary-testsuite-header` in

https://anonscm.debian.org/git/lintian/lintian.git/commit/?id=7c1a32e91b5f9ad674a6f3f66a6a374028942556


Regards,
--
,''`.
: :' : Chris Lamb, Debian Project Leader
`. `'` ***@debian.org / chris-lamb.co.uk
`-
Loading...