]> git.proxmox.com Git - pve-manager.git/commitdiff
api apt: fix spelling in hash to avoid undef access warnings
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 2 Feb 2023 07:42:12 +0000 (08:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 2 Feb 2023 07:42:12 +0000 (08:42 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/APT.pm

index 5db6503e85e346cfbfef82527aac1eef65b68c7d..10587017c5a4213d110671dea6a98a90f0321f97 100644 (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";