On Thu, Nov 22, 2012 at 11:48 AM, John Balcaen <mikala@mageia.org> wrote:



2012/11/22 Pascal Terjan <pterjan@gmail.com>
On Thu, Nov 22, 2012 at 7:19 AM, Balcaen John <mikala@mageia.org> wrote:
Hello,

Could it be possible to get a X-BS-Revision status with the package revision
when we're getting the headers of
http://pkgsubmit.mageia.org/index.php?package=mypackage ?

Which revision ?

The one used for pushing the package in fact.
 
Which package? There can be several, it lists all the ones from the last 48 hours with the given name
 
The idea (for me) is to used it locally for mgaqueue to check that i'm not going to push the « same » package twice with my scripts.
It's supposed to be prevent by the build system but for example i noticed some issue like this :
http://pkgsubmit.mageia.org/uploads/rejected/cauldron/core/release/20121122101746.mikala.valstar.9714.youri
where kgeography has been rejected, so i guess since i'm launching 2-3 mgaqueue [1] files list with some alternate order @ the same time the script is able to push the same package twice (or maybe it's just a bug triggered by me.

Ah yes it will probably be able to upload again if it is not yet in the queue (src.rpm being generated) but then it will not yet appear on http://pkgsubmit.mageia.org/ either
If it appears in the list, the other upload will be blocked
You also get the stats for all builds with this name, and the number of them in todo, building, uploaded

Do you mean when adding &last and it gives the status of the last submitted one?

It could also be useful. 

[1] http://gitorious.org/mgaqueue