Comment 1 for bug 62976

Revision history for this message
Celso Providelo (cprov) wrote : Re: duplicate package/version allowed in unapproved queue

That's unfortunatelly right ...

As we discussed on IRC, the fact we allow dups in NEW & UNAPPROVED is annoying, but the fix will require a fix in nascentupload workflow which we are trying to keep quiet until we land ArchiveRework (because the code will need redesign for PPA anyway).

My suggestion is to workaround this situation with two fixes:

 * Materialize the state updates for each item inside the queue action batch, so the already existent lookup will find the just-modified candidate (this is a bug in previous implementation, one line fix)

 * Fix queue "fetch" action to use ID as a tie-breaker when writing dupes to disk, so foo_1.0.dsc will become foo_1.0.dsc-<ID> if it is already in disk.

Kamion, would you be satisfied (for a while) with this alternative plan ?