Fix to skip listing annoying and useless meta package on Debian/Ubuntu

This commit is contained in:
Ilia Ross
2025-05-25 23:38:00 +03:00
parent 8c0974ac1d
commit fe0ad881f2

View File

@@ -958,6 +958,8 @@ foreach my $pkg (&package_updates::list_available()) {
my $name = $pkg->{'name'};
next unless ($name =~ /^((?:rh-)?(php(?:\d[\d.]*)??)(?:-php)?-common|php\d*[\d.]*)$/);
$name = $2 || $1;
# Skip meta packages on Debian and Ubuntu
next if ($pkg->{'version'} =~ /^([\d]+)/ && $1 > 40);
my ($phpver, $shortver, $bin) = &get_php_info($name, $pkg->{'version'});
push(@rv, { 'name' => $pkg->{'name'},
'ver' => $pkg->{'version'},