~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/archive.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-06 07:15:43 UTC
  • mfrom: (14634.1.6 bug-876594)
  • Revision ID: launchpad@pqm.canonical.com-20120106071543-ym23hw45nfuskgre
[r=jcsackett][bug=876594] Don't notify upstream authors of build
 failures of synced sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1288
1288
            #   - the given source package directly
1289
1289
            #   - a package set in the correct distro series that includes the
1290
1290
            #     given source package
1291
 
            source_allowed = self.checkArchivePermission(person,
1292
 
                                                         sourcepackagename)
 
1291
            source_allowed = self.checkArchivePermission(
 
1292
                person, sourcepackagename)
1293
1293
            set_allowed = self.isSourceUploadAllowed(
1294
1294
                sourcepackagename, person, distroseries)
1295
1295
            if source_allowed or set_allowed:
1296
1296
                return None
1297
1297
 
1298
1298
        if not self.getComponentsForUploader(person):
1299
 
            # XXX: JamesWestby 2010-08-01 bug=612351: We have to use
1300
 
            # is_empty() as we don't get an SQLObjectResultSet back, and
1301
 
            # so __nonzero__ isn't defined on it, and a straight bool
1302
 
            # check wouldn't do the right thing.
1303
1299
            if self.getPackagesetsForUploader(person).is_empty():
1304
1300
                return NoRightsForArchive()
1305
1301
            else: