Tuesday, 5 September 2017

Re: linting wrapper for dput

On 6 September 2017 at 08:14, Brian Murray <brian@ubuntu.com> wrote:
On Fri, Sep 01, 2017 at 12:54:02PM +1200, Michael Hudson-Doyle wrote:
> Hi all,
> If, like me, you spend time preparing uploads for ppas, the ubuntu
> development release, SRUs and/or debian, sometimes you no doubt screw up
> and upload a package without ~ppa1 to your ppa or upload a package with
> version X.Y~17.04 to xenial (at least, I do this sort of thing quite a
> lot). I've written a wrapper around dput that checks for many of these
> mistakes before invoking real dput:
>     https://gist.github.com/mwhudson/616499edb1191bd99c987bbbd8781ce9
> (it also checks that for SRU bugs the listed bugs have open tasks for the
> appropriate distro / source packages).

One problem the SRU team sometimes encounters is bugs linked in SRUs
being private, perhaps you could also check for those?

Ah yes, that makes sense. A very lazy way of doing this would just be to log in to Launchpad anonymously I guess!

I did that, and created a repo on github for this: https://github.com/mwhudson/dput-wrap/tree/master