This commit is contained in:
Jamie Cameron
2024-11-26 21:43:59 -08:00
parent 96548df5f2
commit a539f46189
2 changed files with 10 additions and 1 deletions

9
phpini/install_mod.cgi Normal file
View 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'});

View File

@ -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);