check-spelling: update to new Lintian::Profile API
This changed between Lintian 2.62.0 and 2.64.0.
Michael Stapelberg
4 years ago
16 | 16 | # Lintian complains if we don’t set a vendor. |
17 | 17 | use Lintian::Data; |
18 | 18 | use Lintian::Profile; |
19 | Lintian::Data->set_vendor( | |
20 | Lintian::Profile->new('debian', ['/usr/share/lintian'], {})); | |
19 | ||
20 | my $profile = Lintian::Profile->new; | |
21 | $profile->load('debian', ['/usr/share/lintian']); | |
22 | ||
23 | Lintian::Data->set_vendor($profile); | |
21 | 24 | |
22 | 25 | my $exitcode = 0; |
23 | 26 |