summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-23 20:50:56 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-23 20:50:56 +0000
commita061c3bb3c46565b18eeea43b8e038e1cc01a236 (patch)
tree889ab558c582b065e932049b38b1c1f835c411ae
parent85d8c5e7278f0cd99191aef911a879a922a0b472 (diff)
downloaddrakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar.gz
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar.bz2
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.tar.xz
drakx-a061c3bb3c46565b18eeea43b8e038e1cc01a236.zip
perl_checker cleanups
-rw-r--r--perl-install/cpufreq.pm2
-rw-r--r--perl-install/do_pkgs.pm2
-rw-r--r--perl-install/mygtk2.pm2
3 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/cpufreq.pm b/perl-install/cpufreq.pm
index 91fb06d3f..d11f2cd89 100644
--- a/perl-install/cpufreq.pm
+++ b/perl-install/cpufreq.pm
@@ -112,7 +112,7 @@ sub probe_powernow_k8() {
get_vendor($_) eq "AMD" && (
($_->{'cpu family'} == 15 && ($_->{'power management'} =~ /\bfid\b/ || has_flag($_, 'fid'))) # frequency ID control)
||
- ($_->{'cpu family'} == 16 && ($_->{'power management'} =~ /\bhwpstate\b/)) # support for Athlon/Phenom II processors (#58477))
+ $_->{'cpu family'} == 16 && ($_->{'power management'} =~ /\bhwpstate\b/) # support for Athlon/Phenom II processors (#58477))
);
} get_cpus();
}
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm
index 02761ebcb..f5c73fd88 100644
--- a/perl-install/do_pkgs.pm
+++ b/perl-install/do_pkgs.pm
@@ -72,7 +72,7 @@ sub ensure_binary_is_installed {
sub ensure_files_are_installed {
my ($do, $pkgs, $b_auto) = @_;
- my @not_installed = map { my ($package, $file) = @$_; -e "$::prefix$file" ? () : $package } @$pkgs;
+ my @not_installed = map { my ($package, $file) = @$_; if_(!-e "$::prefix$file", $package) } @$pkgs;
$do->in->ask_okcancel(N("Warning"), N("The following packages need to be installed:\n") . join(', ', @not_installed), 1)
or return if !$b_auto && $do->in;
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index f6f80949c..53251b72b 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -24,7 +24,7 @@ sub init() {
@::textdomains;
Gtk2->croak_execeptions;
}
-init() unless ($::no_ugtk_init);
+init() unless $::no_ugtk_init;
Gtk2->croak_execeptions if $::isInstall;