mirror of
https://github.com/webmin/webmin.git
synced 2026-09-19 12:00:46 +01:00
Use RPM depends system o find packages as a fallback
This commit is contained in:
@@ -74,7 +74,14 @@ elsif ($in{'source'} == 3) {
|
||||
@yum = &list_packaged_modules();
|
||||
foreach $c (@cpan) {
|
||||
($yum) = grep { lc($_->{'mod'}) eq lc($c) } @yum;
|
||||
push(@cpanyum, $yum) if ($yum);
|
||||
if ($yum) {
|
||||
# Module name is known
|
||||
push(@cpanyum, $yum);
|
||||
}
|
||||
elsif ($software::config{'package_system'} eq "rpm") {
|
||||
# Try to install from perl dependency
|
||||
push(@cpanyum, { 'package' => "perl($c)" });
|
||||
}
|
||||
}
|
||||
}
|
||||
if (scalar(@cpan) == scalar(@cpanyum)) {
|
||||
|
||||
Reference in New Issue
Block a user