~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Raphael Badin
  • Date: 2012-01-06 08:27:55 UTC
  • mfrom: (14513.5.4 builder-history-lfa)
  • mto: This revision was merged to the branch mainline in revision 14654.
  • Revision ID: raphael.badin@canonical.com-20120106082755-95a0eh6nakv5hj3b
Merge devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2012 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
 
202
206
        if person is None and self.policy.create_people:
203
207
            package = self._dict['Source']
204
208
            version = self._dict['Version']
382
386
                        "%s: invalid %s field produced by a broken version "
383
387
                        "of dpkg-dev (1.10.11)" % (self.filename, field_name))
384
388
                try:
385
 
                    apt_pkg.ParseSrcDepends(field)
 
389
                    apt_pkg.parse_src_depends(field)
386
390
                except (SystemExit, KeyboardInterrupt):
387
391
                    raise
388
392
                except Exception, error: