diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-16 11:30:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-16 11:30:04 +0000 |
commit | 2de606ced0b567f113be4cb55f096e1f2324bf18 (patch) | |
tree | 6d9fd5e3c00dce6c0190d13ca785cb0da296ed96 /mdkapplet | |
parent | dff36627d87ef7cee8537ba9740b243944804371 (diff) | |
download | mgaonline-2de606ced0b567f113be4cb55f096e1f2324bf18.tar mgaonline-2de606ced0b567f113be4cb55f096e1f2324bf18.tar.gz mgaonline-2de606ced0b567f113be4cb55f096e1f2324bf18.tar.bz2 mgaonline-2de606ced0b567f113be4cb55f096e1f2324bf18.tar.xz mgaonline-2de606ced0b567f113be4cb55f096e1f2324bf18.zip |
(installUpdates) wait for MandrivaUpdate to complete before
recomputing updates & restarting the applet if needed
Diffstat (limited to 'mdkapplet')
-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")); |