linting wrapper for dput
Juerg Haefliger
juerg.haefliger at canonical.com
Wed Sep 6 10:24:24 UTC 2017
On 09/03/2017 10:58 PM, Michael Hudson-Doyle wrote:
>
>
> On 1 September 2017 at 15:55, Simon Quigley <tsimonq2 at ubuntu.com
> <mailto:tsimonq2 at ubuntu.com>> wrote:
>
> Hey Michael,
>
> > 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
> <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).
>
> Amazing, this will be really useful. Thank you!
>
>
> I hope so :)
>
> > I've only been using this for a couple of days but I hope it's going to
> > save me a bunch of time, maybe it will for you too :)
>
> I wonder if there's a way to bake this into dput officially (i.e.
> running these checks and giving an option to override if necessary).
> Maybe file a bug in Debian?
>
>
> Hm it might be the sort of thin dput-ng would do, I guess. I'll try
> filing a bug there and see what happens :)
I think this can all be handled with dput-ng hooks [0] or callbacks are
whatever they're called. Why not create a dedicated package
(dput-ng-ubuntu or something) that provides those hooks?
...Juerg
[0] http://dput.readthedocs.io/en/latest/reference/hooks.html
> Cheers,
> mwh
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 845 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20170906/585f39ff/attachment.sig>
More information about the ubuntu-devel
mailing list