diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-04-03 16:35:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-04-03 16:35:04 +0000 |
commit | 7855d945aebffa31690333bba1eafa4c414f4fea (patch) | |
tree | bf735c1638369b61776a5a0df3b4b76f12e1c2f7 /mdkapplet | |
parent | 4eb5da5ac633ab231bb20f507b85f54be8abe2e9 (diff) | |
download | mgaonline-7855d945aebffa31690333bba1eafa4c414f4fea.tar mgaonline-7855d945aebffa31690333bba1eafa4c414f4fea.tar.gz mgaonline-7855d945aebffa31690333bba1eafa4c414f4fea.tar.bz2 mgaonline-7855d945aebffa31690333bba1eafa4c414f4fea.tar.xz mgaonline-7855d945aebffa31690333bba1eafa4c414f4fea.zip |
(silentCheck, refresh_contents) fix reading hostname
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -258,7 +258,7 @@ sub refresh_contents { my $last = lastCheck(); my $contents = [ [ N("Network Connection: "), $color->{second} ], [ isNetwork() ? N("Up") . "\n" : N("Down") . "\n", isNetwork() ? $color->{third} : $color->{first} ], [ N("Last check: "), $color->{second} ], [ "$last\n", $fixed_tag ], - [ N("Machine name:"), $color->{second} ], [ $h{MACHINE} . "\n", $fixed_tag ], + [ N("Machine name:"), $color->{second} ], [ $h{HOST_NAME} . "\n", $fixed_tag ], [ N("Updates: "), $color->{second} ], [ my_sprintf_fixutf8($state{$status}{tt}[0]), $status eq 'okay' ? $color->{third} : $color->{first} ], ]; $contents; @@ -283,7 +283,7 @@ sub silentCheck() { my %h = getVarsFromSh($conffile); my ($u, $ct); logIt(N("Computing new updates...\n")); - $link .= '&log=' . $h{LOGIN} . '&host=' . $h{MACHINE}; + $link .= '&log=' . $h{LOGIN} . '&host=' . $h{HOST_NAME}; logIt(N("Connecting to") . " $link ...\n"); my $w = $::main_window ? $::main_window->window : undef; gtkset_mousecursor_wait($w); |