summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 8a4ad6d9..6123f53b 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -287,7 +287,10 @@ sub installUpdates() {
my $oldmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
logIt(N("Launching mdkupdate --applet\n"));
refresh_gui(0);
- fork_exec('MandrivaUpdate', '--no-media-update', '--no-confirmation');
+ my $pid = fork_exec('MandrivaUpdate', '--no-media-update', '--no-confirmation');
+ while (!member($pid, harvester())) {
+ gtkflush();
+ }
my $newmd5 = $release <= 10.2 ? mdkonline::md5file($binfile) : common::md5file($binfile);
restart_applet() if $newmd5 ne $oldmd5;
#my $w = $in->wait_message(N("Please wait"), N("Check updates"));