api apt: fix spelling in hash to avoid undef access warnings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-02-02 08:42:12 +01:00
parent 929d8722c2
commit a689d3c04c

View File

@ -109,7 +109,7 @@ my $get_changelog_url =sub {
for my $file ($data->{files}->@*) {
for my $repo (grep { $_->{Enabled} } $file->{repositories}->@*) {
next if !grep(/$pkgfile->{component}/, $repo->{Components}->@*);
next if !grep(/$pkgfile->{Component}/, $repo->{Components}->@*);
next if !$repo->{URIs}[0] =~ m/$pkgfile->{Site}/;
return $repo->{URIs}[0] . "/$base/${pkgname}_${pkgver}.changelog";