~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Michael Nelson
  • Date: 2010-06-04 07:20:19 UTC
  • mfrom: (10940 launchpad)
  • mto: This revision was merged to the branch mainline in revision 10942.
  • Revision ID: michael.nelson@canonical.com-20100604072019-qxxsmjfd5b72nxoh
Merge fresh devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        if self.context.archive.is_ppa or self.context.archive.is_copy:
136
136
            return '%s build of %s %s' % (
137
137
                self.context.arch_tag,
138
 
                self.context.sourcepackagerelease.sourcepackagename.name,
139
 
                self.context.sourcepackagerelease.version)
 
138
                self.context.source_package_release.sourcepackagename.name,
 
139
                self.context.source_package_release.version)
140
140
        else:
141
141
            return '%s build' % self.context.arch_tag
142
142
 
227
227
        in state WAITING.
228
228
        """
229
229
        return (
230
 
            self.context.buildstate == BuildStatus.NEEDSBUILD and
 
230
            self.context.status == BuildStatus.NEEDSBUILD and
231
231
            self.context.buildqueue_record.job.status == JobStatus.WAITING)
232
232
 
233
233