summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-30 10:13:57 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-30 10:13:57 +0000
commita3e2ad3d85f954e66431bd52edced2a013a36446 (patch)
tree8e5339ec3e88b7b37414d069beec36fdace0eb73 /mdkapplet
parent3c3d71e9d9a962eb2f508f306c53a21ba9dc0dd6 (diff)
downloadmgaonline-a3e2ad3d85f954e66431bd52edced2a013a36446.tar
mgaonline-a3e2ad3d85f954e66431bd52edced2a013a36446.tar.gz
mgaonline-a3e2ad3d85f954e66431bd52edced2a013a36446.tar.bz2
mgaonline-a3e2ad3d85f954e66431bd52edced2a013a36446.tar.xz
mgaonline-a3e2ad3d85f954e66431bd52edced2a013a36446.zip
- Launch MandrakeUpdate with the --no-confirmation flag, to avoid the "check
that the network is currently running" message - Create the .MdkOnline directory in the user's (presumably root's) $HOME
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index d139818a..ae44dc93 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -41,7 +41,7 @@ my ($av_pkgs, $update_label, $lastch, $mLog, $buffer, $textview, $wlog);
my ($need_update, $raisedwindow, $isAvailable) = (0, 0, 0);
my @proctable;
my $conffile = '/etc/sysconfig/mdkonline';
-my $localdir = '$ENV{HOME}/.MdkOnline';
+my $localdir = "$ENV{HOME}/.MdkOnline";
my $localfile = "$localdir/mdkonline";
#compatibility
@@ -176,7 +176,10 @@ sub setLabel {
gtkflush();
}
sub configNetwork { logIt(N("Launching drakconnect\n")); system "/usr/sbin/drakconnect &" }
-sub launchUpdate { logIt(N("Launching MandrakeUpdate\n")); system "/usr/sbin/MandrakeUpdate &" }
+sub launchUpdate {
+ logIt(N("Launching MandrakeUpdate\n"));
+ system "/usr/sbin/MandrakeUpdate --no-confirmation &";
+}
sub installUpdates { logIt(N("Launching mdkupdate --applet\n")); system "/usr/sbin/mdkupdate", "--applet"; silentCheck() }
sub silentCheck {
my $link = "http://www.mandrakeonline.net/online3_RemoteAction.php" . '?action=UpdateList';