summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-16 11:30:04 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-16 11:30:04 +0000
commit2de606ced0b567f113be4cb55f096e1f2324bf18 (patch)
tree6d9fd5e3c00dce6c0190d13ca785cb0da296ed96 /mdkapplet
parentdff36627d87ef7cee8537ba9740b243944804371 (diff)
downloadmgaonline-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-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"));