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
commitf2d2f8d8f18e830d8c5256066c91e1c48abd2621 (patch)
tree889ab558c582b065e932049b38b1c1f835c411ae
parent16e641d378c67bcfa21758b981cd1072353c531a (diff)
downloaddrakx-backup-do-not-use-f2d2f8d8f18e830d8c5256066c91e1c48abd2621.tar
drakx-backup-do-not-use-f2d2f8d8f18e830d8c5256066c91e1c48abd2621.tar.gz
drakx-backup-do-not-use-f2d2f8d8f18e830d8c5256066c91e1c48abd2621.tar.bz2
drakx-backup-do-not-use-f2d2f8d8f18e830d8c5256066c91e1c48abd2621.tar.xz
drakx-backup-do-not-use-f2d2f8d8f18e830d8c5256066c91e1c48abd2621.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;