mirror of
https://github.com/webmin/webmin.git
synced 2025-08-01 15:36:00 +00:00
Ignore packages after the 'Obsoleting Packages' line https://forum.virtualmin.com/t/detection-of-available-package-updates-packages-available-from-multiple-repos/130651
This commit is contained in:
9
phpini/install_mod.cgi
Normal file
9
phpini/install_mod.cgi
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/local/bin/perl
|
||||
# Install the package for a given PHP module, based on the version
|
||||
|
||||
require './phpini-lib.pl';
|
||||
&ReadParse();
|
||||
&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
|
||||
$access{'global'} || &error($text{'mods_ecannot'});
|
||||
$in{'mod'} =~ /^\S+$/ || &error($text{'mods_emod'});
|
||||
|
@ -338,7 +338,6 @@ if ($yum_command =~ /dnf/) {
|
||||
else {
|
||||
&open_execute_command(PKG, "$yum_command check-update 2>/dev/null | tr '\n' '#' | sed -e 's/# / /g' | tr '#' '\n'", 1, 1);
|
||||
}
|
||||
|
||||
while(<PKG>) {
|
||||
s/\r|\n//g;
|
||||
if (/^(\S+)\.([^\.]+)\s+(\S+)\s+(\S+)/ && $2 ne 'src') {
|
||||
@ -352,6 +351,7 @@ while(<PKG>) {
|
||||
$done{$pkg->{'name'}} = $pkg;
|
||||
push(@rv, $pkg);
|
||||
}
|
||||
last if (/Obsoleting\s+Packages/i);
|
||||
}
|
||||
close(PKG);
|
||||
&set_yum_security_field(\%done);
|
||||
|
Reference in New Issue
Block a user