summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-08 17:28:44 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-08 17:28:44 +0000
commitb4b4eb53099309d97103129e94d54fe23b4d1745 (patch)
tree892d467560c641edb10af77073f6e7d4266641d1 /mdkapplet
parent5fbf37f3c0377f7d9a4c42f3f25b0c83dc511d8a (diff)
downloadmgaonline-b4b4eb53099309d97103129e94d54fe23b4d1745.tar
mgaonline-b4b4eb53099309d97103129e94d54fe23b4d1745.tar.gz
mgaonline-b4b4eb53099309d97103129e94d54fe23b4d1745.tar.bz2
mgaonline-b4b4eb53099309d97103129e94d54fe23b4d1745.tar.xz
mgaonline-b4b4eb53099309d97103129e94d54fe23b4d1745.zip
perl_checker cleanups
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet16
1 files changed, 8 insertions, 8 deletions
diff --git a/mdkapplet b/mdkapplet
index 8f3d7cef..32b9da61 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -114,7 +114,7 @@ my %state = (
colour => [ 'error' ],
changes => [ 'okay' ],
menu => [ 'update', 'check' ],
- tt => [ N("A new stable distribution has been released") ."\n\n" . N("Do you want to upgrade?") ]
+ tt => [ N("A new stable distribution has been released") . "\n\n" . N("Do you want to upgrade?") ]
},
disconnected => {
colour => [ 'disconnect' ],
@@ -163,7 +163,7 @@ my %comm_codes = (
locked => {
code => 2,
status => 'locked',
- log => N_("urpmi database locked") . ", skipping updating urpmi database",
+ log => "urpmi database locked, skipping updating urpmi database",
},
error_updating => {
code => 3,
@@ -183,17 +183,17 @@ my %comm_codes = (
updates => {
code => 6,
status => 'updates',
- log => N_("Checking... Updates are available\n") . "\n",
+ log => "Checking... Updates are available\n\n",
},
uptodate => {
code => 7,
status => 'okay',
- log => N_("Packages are up to date") . "\n",
+ log => "Packages are up to date\n",
},
db_not_open => {
code => 8,
status => 'critical',
- log => N_("Failed to open urpmi database") . "\n",
+ log => "Failed to open urpmi database\n",
},
);
@@ -220,7 +220,7 @@ $icon->signal_connect(activate => sub {
});
foreach my $opt (@ARGV) {
if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }
- if ($opt =~ '--(rpm-root|urpmi-root)=(.*)') {
+ if ($opt =~ /--(rpm-root|urpmi-root)=(.*)/) {
$::rpmdrake_options{$1}[0] = $2;
}
}
@@ -400,7 +400,7 @@ sub installUpdates() {
sub silentCheck() {
state $check_time;
- my $new_time = time ();
+ my $new_time = time();
if (!$check_time || $new_time - $check_time > $config{DISTRO_CHECK_DELAY}) {
$check_time = $new_time;
if (is_there_a_new_distributions()) {
@@ -412,7 +412,7 @@ sub silentCheck() {
return if $mdv_update_pid || $checker_pid;
logIt(N_("Computing new updates...\n"));
- logIt(N_("Connecting to") . " ...\n"); # i18n bug to fix in cooker
+ logIt("Connecting to ...\n"); # i18n bug to fix in cooker
my $w = $::main_window ? $::main_window->window : undef;
gtkset_mousecursor_wait($w);
gtkflush(); go2State('busy'); gtkflush();