From fab1cc4245151caa7d5c936080dd34dcf3393520 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Dec 11 2017 17:50:46 +0000 Subject: don't fail if child task doesn't provide source While the current code will always provide it, the older code did not. When a Koji system is updated to this version, we could have a restarted build task read the result of a previously finished buildSRPMFromSCM task that ran with the old code. --- diff --git a/builder/kojid b/builder/kojid index aba9bdd..a71de54 100755 --- a/builder/kojid +++ b/builder/kojid @@ -937,7 +937,10 @@ class BuildTask(BaseTaskHandler): parent=self.id) # wait for subtask to finish result = self.wait(task_id)[task_id] - self.source = result['source'] + if 'source' in result: + self.source = result['source'] + else: + self.logger.warning('subtask did not provide source data') srpm = result['srpm'] return srpm