~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/browser/build.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-15 09:05:57 UTC
  • mfrom: (14518 devel)
  • mto: This revision was merged to the branch mainline in revision 14593.
  • Revision ID: launchpad@pqm.canonical.com-20111215090557-53p3uc20vtyr9vk1
[rs=buildbot-poller] automatic merge from stable. Revisions: 14517,
        14518 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
        return self.context.buildqueue_record
303
303
 
304
304
    @cachedproperty
305
 
    def component(self):
306
 
        return self.context.current_component
 
305
    def component_name(self):
 
306
        # Production has some buggy historic builds without
 
307
        # source publications.
 
308
        component = self.context.current_component
 
309
        if component is not None:
 
310
            return component.name
 
311
        else:
 
312
            return 'unknown'
307
313
 
308
314
    @cachedproperty
309
315
    def files(self):