~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/model/distributionsourcepackage.py

  • Committer: Julian Edwards
  • Date: 2010-08-26 08:02:08 UTC
  • mfrom: (11447 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11453.
  • Revision ID: julian.edwards@canonical.com-20100826080208-sut7s35g9z0qtk9v
merge devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
            BugTask.bug == Bug.id,
227
227
            BugTask.distributionID == self.distribution.id,
228
228
            BugTask.sourcepackagenameID == self.sourcepackagename.id,
 
229
            Bug.duplicateof == None,
229
230
            BugTask.status.is_in(UNRESOLVED_BUGTASK_STATUSES)).one()
230
231
 
231
232
        # Aggregate functions return NULL if zero rows match.
567
568
        dsp.sourcepackagename = sourcepackagename
568
569
        dsp.is_upstream_link_allowed = is_upstream_link_allowed
569
570
        Store.of(distribution).add(dsp)
 
571
        Store.of(distribution).flush()
570
572
        return dsp
571
573
 
572
574
    @classmethod