~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/process-job-source-groups.py

  • Committer: Edwin Grubbs
  • Date: 2010-09-30 20:39:02 UTC
  • mto: (7675.785.225 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11695.
  • Revision ID: edwin.grubbs@canonical.com-20100930203902-bbj86nmtuezf48j5
Addressed more review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        # Then, exclude job sources.
69
69
        for source in self.options.excluded_job_sources:
70
70
            if source not in selected_job_sources:
71
 
                self.logger.warn('%r is not in job source groups %s'
72
 
                                 % (source, self.options.groups))
 
71
                self.logger.info('%r is not in job source groups %s'
 
72
                                  % (source, self.options.groups))
73
73
            else:
74
74
                selected_job_sources.remove(source)
75
75
        # Process job sources.
82
82
        for job_source in selected_job_sources:
83
83
            child = subprocess.Popen(child_args + [job_source])
84
84
            children.append(child)
85
 
        for child in children:
86
 
            child.wait()
 
85
        if self.options.do_wait:
 
86
            for child in children:
 
87
                child.wait()
87
88
 
88
89
    @cachedproperty
89
90
    def all_job_sources(self):