arch-all PPA packages create publications for non-PPA-supported architectures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
unexpected architecture for arch-all binary packages reported by getPublishedBin
in the following example, i browse chromium-daily/beta and look for chromium-
>>> user=lp.
>>> ppa=user.ppas[0]
>>> ppa
<archive at https:/
>>> srcs = ppa.getPublishe
>>> src = srcs[0]
>>> src
<source_
>>> bins = src.getPublishe
Traceback (most recent call last):
...
ValueError: Unrecognized parameter(s): 'binary_name' <==== *sigh*
>>> bins = src.getPublishe
>>> bins[0]
u'chromium-browser'
>>> bins[1]
u'chromium-browser'
>>> bins[2]
u'chromium-
>>> bins[3]
u'chromium-
>>> bins[4]
u'chromium-
>>> bins[4]
'amd64'
>>> bins[5]
u'chromium-
>>> bins[5]
'armel' <===== bingo!
none of the chromium-daily PPAs are native so they only have access to i386/amd64/lpia builders, hence, they should not report builds for armel, powerpc, etc, yet they do for arch-all binaries.
tags: | added: soyuz-publish |
tags: | added: ppa |
On Thursday 23 September 2010 11:46:13 you wrote: dBinaries( binary_ name = browser- inspector' )
> >>> bins = src.getPublishe
> >>> 'chromium-
>
> Traceback (most recent call last):
> ...
> ValueError: Unrecognized parameter(s): 'binary_name' <==== *sigh*
You can use archive. getPublishedBin aries for that.
> >>> bins[5] .distro_ arch_series. architecture_ tag
>
> 'armel' <===== bingo!
>
> none of the chromium-daily PPAs are native so they only have access to
> i386/amd64/lpia builders, hence, they should not report builds for
> armel, powerpc, etc, yet they do for arch-all binaries.
This is a more general problem than the bug title - publishing records are
created erroneously for PPAs for arch-all packages.
The fix is to check the ppa_supported flag when creating publications, while
obeying the restricted architectures feature.