After discussing CLI validations, fginther came up with the problem of a source package having a lower version than the last uploaded one for that source, and that being discovered only at the time the package has finished building and needs to be uploaded to the PPA.
We agree that it would be great if this validation could be done at the ticket creation time, but we also agree this is not a trivial issue as we need to figure out where would it be a reliable place to check for this information, considering:
- the parts are moving and packages can be built and uploaded in the meantime
- only PPA assigner knows about the PPAs in the PPA pool to have them checked for the last uploaded version
- only at package build time (branch-source-builder) is possible to have a reliable result on the latest successfully uploaded package. (bug 1284153)
One of possible (yet unproved to fully solve the problem) workaround would be to have ticket system to somehow mark the last successful uploaded package, by recording it after the upload is completed, and having the CLI to check it and also all pending tickets related to that source package, verifying their version numbers.
CLI was dropped in r875.2.1