~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/sourcepackagerecipebuild.py

  • Committer: Tim Penhey
  • Date: 2010-12-15 02:53:37 UTC
  • mto: This revision was merged to the branch mainline in revision 12116.
  • Revision ID: tim.penhey@canonical.com-20101215025337-eu5dqoqh7n0ae422
Log the recipes that are having daily builds requested.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
        return spbuild
183
183
 
184
184
    @staticmethod
185
 
    def makeDailyBuilds():
 
185
    def makeDailyBuilds(logger=None):
186
186
        from lp.code.model.sourcepackagerecipe import SourcePackageRecipe
187
187
        recipes = SourcePackageRecipe.findStaleDailyBuilds()
188
188
        builds = []
200
200
                    info = sys.exc_info()
201
201
                    errorlog.globalErrorUtility.raising(info)
202
202
                else:
 
203
                    if logger is not None:
 
204
                        logger.debug(
 
205
                            'Build for %s/%s requested',
 
206
                            recipe.owner.name, recipe.name)
203
207
                    builds.append(build)
204
208
            recipe.is_stale = False
205
209
        return builds