From a689d3c04c9a5a4ea99feba85af090dfc29ff815 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 2 Feb 2023 08:42:12 +0100 Subject: [PATCH] api apt: fix spelling in hash to avoid undef access warnings Signed-off-by: Thomas Lamprecht --- PVE/API2/APT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm index 5db6503e..10587017 100644 --- a/PVE/API2/APT.pm +++ b/PVE/API2/APT.pm @@ -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";