Felix Lechner pushed to branch master at lintian / lintian


Commits:
d2f692f5 by Felix Lechner at 2020-12-03T21:10:06-08:00
Load and cache Lintian::Data objects in profiles; drop their global data 
structures.

Now the data structures are no longer global. They also no longer rely
on a having a single, global profile. The checks can access copies and
keep them in locally scoped variables or in Moo attributes.

This change will likely break libconfig-model-dpkg-perl, the only
package known to rely on Lintian's proprietary data structures. For
now, please load the data with:

    my $data = $profile->load_data(...);

instead of

    my $data = Lintian::Data->new(...);

That is a temporary fix; the interface is scheduled to change again in
the near future.

The use of Lintian's data objects by third parties is expected to stop
with the resolution of Bug#968011. That step is necessary to develop
Lintian safely on a system that has Lintian installed, and also run
autopkgtests on such a system.

It would be helpful if libconfig-model-dpkg-perl could please find a
way to obtain the policy release dates directly from the responsible
team, as requested in Bug#968000. Thank you!

- - - - -


30 changed files:

- bin/spellintian
- checks/binaries.pm
- checks/changes-file.pm
- checks/control-files.pm
- checks/cruft.pm
- checks/deb-format.pm
- checks/debhelper.pm
- checks/debian/changelog.pm
- checks/debian/control.pm
- checks/debian/copyright.pm
- checks/debian/lintian-overrides/comments.pm
- checks/debian/patches/quilt.pm
- checks/debian/readme.pm
- checks/debian/rules.pm
- checks/debian/source-dir.pm
- checks/debian/upstream/signing-key.pm
- checks/debian/watch.pm
- checks/desktop/gnome/gir.pm
- checks/documentation.pm
- checks/documentation/manual.pm
- checks/fields/architecture.pm
- checks/fields/changed-by.pm
- checks/fields/derivatives.pm
- checks/fields/description.pm
- checks/fields/distribution.pm
- checks/fields/essential.pm
- checks/fields/homepage.pm
- checks/fields/maintainer.pm
- checks/fields/package-relations.pm
- checks/fields/priority.pm


The diff was not included because it is too large.


View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/d2f692f564ac725a0eb58a7d62abe57f66cdc753

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/d2f692f564ac725a0eb58a7d62abe57f66cdc753
You're receiving this email because of your account on salsa.debian.org.


Reply via email to