summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-05-17 03:51:49 +0000
committerThierry Vignaud <tv@mageia.org>2013-05-17 03:51:49 +0000
commitfdd91c0104722089582ffaac0c537f6ba4a76020 (patch)
tree22b9bc986d74c1e36fbe99ab898bc7bc7c976218 /perl-install
parentb0fafbf9030544f0584a1eadc34c3aa5c8b24992 (diff)
downloaddrakx-backup-do-not-use-fdd91c0104722089582ffaac0c537f6ba4a76020.tar
drakx-backup-do-not-use-fdd91c0104722089582ffaac0c537f6ba4a76020.tar.gz
drakx-backup-do-not-use-fdd91c0104722089582ffaac0c537f6ba4a76020.tar.bz2
drakx-backup-do-not-use-fdd91c0104722089582ffaac0c537f6ba4a76020.tar.xz
drakx-backup-do-not-use-fdd91c0104722089582ffaac0c537f6ba4a76020.zip
cache value (thus logging only once)
(needed for next commits)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/any.pm9
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);