~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-05 08:16:32 UTC
  • mfrom: (7675.395.224 db-deploy)
  • Revision ID: launchpad@pqm.canonical.com-20120105081632-ser8buy9a9phqryx
[r=stub][bug=906222] Add more BAD_USERS,
 allowing known bad jobs to be killed during fastdowntime deployments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2012 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
""" DSCFile and related.
199
199
            raise UploadError(str(error))
200
200
 
201
201
        person = getUtility(IPersonSet).getByEmail(email)
202
 
        if person and person.private:
203
 
            # Private teams can not be maintainers.
204
 
            raise UploadError("Invalid Maintainer.")
205
 
 
206
202
        if person is None and self.policy.create_people:
207
203
            package = self._dict['Source']
208
204
            version = self._dict['Version']