summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-04-06 14:22:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-04-06 14:22:02 +0000
commite2b36c18ef59a8a69d5c492b930d9ed6b3db1e45 (patch)
tree13d0be106be918c7848a48164d9f6358f2201586
parent7aaba46b18b98e374e7a5d1afdecd0e0666395a4 (diff)
downloadmgaonline-e2b36c18ef59a8a69d5c492b930d9ed6b3db1e45.tar
mgaonline-e2b36c18ef59a8a69d5c492b930d9ed6b3db1e45.tar.gz
mgaonline-e2b36c18ef59a8a69d5c492b930d9ed6b3db1e45.tar.bz2
mgaonline-e2b36c18ef59a8a69d5c492b930d9ed6b3db1e45.tar.xz
mgaonline-e2b36c18ef59a8a69d5c492b930d9ed6b3db1e45.zip
Do NOT hardcode paths.
-rwxr-xr-xmdkapplet4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index d7c8f428..ac101007 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -265,13 +265,13 @@ sub refresh_contents {
}
sub configNetwork() { logIt(N("Launching drakconnect\n")); refresh_gui(0); fork_exec("/usr/sbin/drakconnect") }
sub installUpdates() {
- my $binfile = '/usr/bin/mdkapplet';
+ my $binfile = $0;
my $oldmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
logIt(N("Launching mdkupdate --applet\n"));
refresh_gui(0);
fork_exec("/usr/sbin/mdkupdate --applet");
my $newmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
- if ($newmd5 ne $oldmd5) { logIt(N("Mandriva Online seems to be reinstalled, reloading applet ....")); exec('/usr/bin/mdkapplet') }
+ if ($newmd5 ne $oldmd5) { logIt(N("Mandriva Online seems to be reinstalled, reloading applet ....")); exec($binfile) }
#my $w = $in->wait_message(N("Please wait"), N("Check updates"));
silentCheck(); gtkflush();
#undef $w;