summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-20 15:21:52 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-20 15:21:52 +0000
commitcfcc53c071d834af84cfa4b7d319c4914c79e1bc (patch)
tree1b0f0cf23f3ff91f740e282e72fdd8c23c98efcd
parent1caa8d5bdfd75dd6b272c190e1c92d84bed18d17 (diff)
downloadmgaonline-cfcc53c071d834af84cfa4b7d319c4914c79e1bc.tar
mgaonline-cfcc53c071d834af84cfa4b7d319c4914c79e1bc.tar.gz
mgaonline-cfcc53c071d834af84cfa4b7d319c4914c79e1bc.tar.bz2
mgaonline-cfcc53c071d834af84cfa4b7d319c4914c79e1bc.tar.xz
mgaonline-cfcc53c071d834af84cfa4b7d319c4914c79e1bc.zip
(harvester) only schedule an updates check if we really run
MandrivaUpdate (not eg edit-urpm-sources)
-rwxr-xr-xmdkapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index af4f79b7..1d17c58f 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -218,7 +218,7 @@ sub harvester {
my $mdvupdate_returned;
do {
$childpid = waitpid(-1, &WNOHANG);
- if ($mdv_update_pid == $childpid) {
+ if ($mdv_update_pid && $mdv_update_pid == $childpid) {
undef $mdv_update_pid;
$mdvupdate_returned = 1;
}