diff options
Diffstat (limited to 'perl-install/install')
-rw-r--r-- | perl-install/install/any.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index ed9ab1291..2eb23195d 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -323,7 +323,7 @@ sub _tainted_medium() { N("Tainted Release") } sub _nonfree_medium() { N("Nonfree Release") } # FIXME: move me in ../any.pm or in harddrake::*, might be needed by rpmdrake/harddrake: -sub is_firmware_needed { +sub is_firmware_needed_ { my ($o) = @_; require list_firmwares; my @l = map { $_->{driver} } detect_devices::probeall(); @@ -336,6 +336,13 @@ sub is_firmware_needed { @need || @xpkgs; } +sub is_firmware_needed { + my ($o) = @_; + state $res; + $res = is_firmware_needed_($o) if !defined $res; + $res; +} + sub msg_if_firmware_needed { my ($o) = @_; return if !is_firmware_needed($o); |