Comment 5 for bug 378828

Revision history for this message
Celso Providelo (cprov) wrote :

We try to preserve the original source information as much as we can, and in this case the uploaded source was target to 'contrib', so its SourcePackageRelease was recorded as such.

The problem lives on the code that calculates the Build context component, it first checks for an active publication (pending or published) and if it couldn't be found (which was the case, because it was deleted) it falls back to the SPR.component. Basically, it shouldn't fall back, because the SPR.component doesn't necessary match the build context, by design, the corresponding publishing record component does.

We should look for the latest publishing record in the build context, regardless of its status, and for PPAs it will be 'main', for primary archive builds it will be the whatever component was established for that source (current override).