So I suppose what happens is that in autopkgtest-retrier the call is being done with "&component=main".
The component is determined from the archive that you request the retry in, but that's a PPA in this case -- and PPAs always have "main" as their only component.
Asking the PPA about upload rights doesn't make much sense IMHO, as direct upload rights are also quite limited. So I guess I'll change this to always query the component from the Ubuntu archive, and separate this out from is_valid_package_version().
The actual checkUpload() call seems to work fine:
wget -O- 'https:/ /api.launchpad. net/1.0/ ubuntu/ +archive/ primary? ws.op=checkUplo ad&distroseries =https% 3A//api. launchpad. net/1.0/ ubuntu/ xenial& person= https%3A/ /api.launchpad. net/1.0/ ~timo-jyrinki& component= universe& pocket= Proposed& sourcepackagena me=qtcreator- plugin- ubuntu'
So I suppose what happens is that in autopkgtest-retrier the call is being done with "&component=main".
The component is determined from the archive that you request the retry in, but that's a PPA in this case -- and PPAs always have "main" as their only component.
Asking the PPA about upload rights doesn't make much sense IMHO, as direct upload rights are also quite limited. So I guess I'll change this to always query the component from the Ubuntu archive, and separate this out from is_valid_ package_ version( ).