mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix to skip listing annoying and useless meta package on Debian/Ubuntu
This commit is contained in:
@@ -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'},
|
||||
|
||||
Reference in New Issue
Block a user