summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-11 12:58:45 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-11 12:58:45 +0000
commitc47d612f85ef1fbab20416ef77861342fd7d01fa (patch)
treed1901bacbf3caa1e90dcb48de990ef2aadf57f5b
parent9cec2671aa994bed5ae9e2448baf67ef00e1bedb (diff)
downloadmgaonline-c47d612f85ef1fbab20416ef77861342fd7d01fa.tar
mgaonline-c47d612f85ef1fbab20416ef77861342fd7d01fa.tar.gz
mgaonline-c47d612f85ef1fbab20416ef77861342fd7d01fa.tar.bz2
mgaonline-c47d612f85ef1fbab20416ef77861342fd7d01fa.tar.xz
mgaonline-c47d612f85ef1fbab20416ef77861342fd7d01fa.zip
(checkConfig) do not flood logs when config file is not there
-rwxr-xr-xmdkapplet4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index dd742647..c1903fce 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -384,7 +384,9 @@ sub setLastTime() {
}
sub checkConfig() {
if (!-e $conffile) {
- logIt(N("Checking config file: Not present\n"));
+ my $logged if 0;
+ logIt(N("Checking config file: Not present\n")) if !$logged;
+ $logged = 1;
go2State('noconfig');
} elsif (!isNetwork()) {
logIt(N("Checking Network: seems disabled\n"));