IArchive.isSourceUploadAllowed() requires existing sourcepackagename

Bug #821374 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

I want to see if someone is allowed to upload to a given PPA, because of bug 814725 I can't just upload and see what the error is, I have to look before I leap.

IArchive.isSourceUploadAllowed() looks like it might be relevant, since I'm interested in seeing whether that person is allowed to upload source. However, when I ask if I am allowed to upload the source package 'whatever' to my own PPA for the current release of Ubuntu, I get an error:

>>> ppa.isSourceUploadAllowed(person=me, distroseries=ubuntu.current_series, sourcepackagename='whatever')
Traceback (most recent call last):
...
NotFound: HTTP Error 404: Not Found
Response headers:
---
...
status: 404
...
---
Response body:
---
No such source package: 'whatever'.
---

Tags: api ppa
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.