diff options
-rwxr-xr-x | mdkapplet | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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")); |