~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/dscfile.py

  • Committer: Steve Kowalik
  • Date: 2012-01-05 04:40:45 UTC
  • mto: This revision was merged to the branch mainline in revision 14637.
  • Revision ID: steve.kowalik@canonical.com-20120105044045-2wo0cdtzit88jhsy
Remove one case entirely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
        person = getUtility(IPersonSet).getByEmail(email)
202
202
        if person and person.private:
203
203
            # Private teams can not be maintainers.
204
 
            error = "Invalid Maintainer."
205
 
            if self.changes.changed_by and self.changes.changed_by['person']:
206
 
                if self.changes.changed_by['person'].inTeam(person):
207
 
                    error = "Maintainer can not be set to a private team."
208
 
            raise UploadError(error)
 
204
            raise UploadError("Invalid Maintainer.")
209
205
 
210
206
        if person is None and self.policy.create_people:
211
207
            package = self._dict['Source']