summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-02 17:29:17 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-02 17:29:17 +0000
commit2529aca77ba3908e9b6c527a9aa944c3ef9673a4 (patch)
tree6c0ec831d577d7c0f3c8e455ed1507f274cd5b74 /mdkapplet
parentf8b5d547c5e7c345e1f26be6af86844643fe7452 (diff)
downloadmgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar
mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar.gz
mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar.bz2
mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.tar.xz
mgaonline-2529aca77ba3908e9b6c527a9aa944c3ef9673a4.zip
- fix many small bugs
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet12
1 files changed, 9 insertions, 3 deletions
diff --git a/mdkapplet b/mdkapplet
index 0f2152d6..0883bf60 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -115,8 +115,8 @@ sub showMainWindow() {
$w->set_title(N("Mandrake Updates Applet"));
$w->signal_connect(delete_event => sub { $w->destroy });
$w->set_position('center');
- my ($choice, $isAvailable, $isNetwork, $time);
- $time = `date`; chomp($time);
+ my ($choice, $isAvailable, $time);
+ $isAvailable = silentCheck();
my $autocheck;
gtkadd($w,
gtkpack__(Gtk2::VBox->new(0,5),
@@ -132,7 +132,7 @@ sub showMainWindow() {
gtkpack_(Gtk2::VBox->new(0, 3),
0, gtkpack_(Gtk2::HBox->new(0, 3),
0, Gtk2::Label->new(N("Network Connection: ")),
- 0, Gtk2::Label->new($isNetwork ? N("Up") : N("Down"))
+ 0, Gtk2::Label->new(isNetwork() ? N("Up") : N("Down"))
),
0, gtkpack_(Gtk2::HBox->new(0, 3),
0, Gtk2::Label->new(N("New Updates: ")),
@@ -193,6 +193,12 @@ sub cronUpdate {
1;
});
}
+sub lastCheck {
+ my %h = getVarsFromSh($conffile);
+ my ($t, $l);
+ $t = $h{LASTCHECK} =~ s/\_/ /;
+ $t
+}
sub checkUpdates {
if (!isNetwork()) {
go2State('disconnected')