IArchive.checkUpload() requires existing sourcepackagename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
High
|
Unassigned |
Bug Description
There's no API for telling if someone can upload to a particular PPA. One API that looks like it might be appropriate is IArchive.
{{{
>>> ppa.checkUpload
True
>>> ppa.checkUpload
Traceback (most recent call last):
...
NotFound: HTTP Error 404: Not Found
Response headers:
---
...
status: 404
...
---
Response body:
---
No such source package: 'whatever'.
---
}}}
Exacerbated by bug 814725. If there were a way of actually getting feedback on upload, then we could just try & get the failure.
(Fixed inflammatory bug title)
The API is not as useful for PPAs as it could be because it was designed for the main archive. The source name, pocket and component should be optional parameters for PPAs and mandatory for the main archive.