check-spelling: update to new Lintian::Profile API

This changed between Lintian 2.62.0 and 2.64.0.
next
Michael Stapelberg 2020-04-07 17:41:56 +02:00
parent cf505eaea8
commit 72a6ad2013
1 changed files with 5 additions and 2 deletions

View File

@ -17,8 +17,11 @@ use Lintian::Spelling qw(check_spelling);
# Lintian complains if we dont set a vendor.
use Lintian::Data;
use Lintian::Profile;
Lintian::Data->set_vendor(
Lintian::Profile->new('debian', ['/usr/share/lintian'], {}));
my $profile = Lintian::Profile->new;
$profile->load('debian', ['/usr/share/lintian']);
Lintian::Data->set_vendor($profile);
my $exitcode = 0;