Wednesday, 6 September 2017

Re: linting wrapper for dput

-----BEGIN PGP SIGNATURE-----

iQI7BAEBCAAlBQJZr8zYHhxqdWVyZy5oYWVmbGlnZXJAY2Fub25pY2FsLmNvbQAK
CRB1TDqW+fi0jItDD/9LL3IOTzJamjVdWdzs7I+Hd9n/S/IrgS9VS9J5QVPAsF7a
1WQ5ICpFg7lES/vVwz/QdDK7RHE2ecYVSmLO/d+rtRid4IkvlxIGCQbeywgehwjQ
Ljc547Lg4AV+spmGKOYAFyMV3yTpst38JhDKuCFaU5r28fvG3SPeB3w238JI8s1J
pGmKerLy0HAi76BCaTENlQbWLP0bbZkPdzx/drS5o9aw8mUNhM8qrVF/qGLJhms1
u8r1UblANFce6F6a320zHG2JLwUd9Ja9uq0wP8GG7EZc9MO1NLIH6ymokLxARbxV
9DyHyY69glcIDg7/EIpm9D0Pb16pF1X8wHLKEJE/lb1TIGuFrb0qxGJ53GkeRWcT
ln3ke9oztGNRgqpK1TrrcAB7iAyfIs26i8U8E089AgwqKAomU3VtCFZe0MStoUyB
tGKkwKslQJbk4WqgICMZRUeTqxHAK9AInNLZISv4oCrQO2Xv5f4l14CmE7+94xfY
O17DK/Y8Moutap+Q2NaeJswAMcciIR1ENZaplKkyCCr6tFF+nMH+Fxx5VKE6lmdv
f5xWUqvLnNikcXKeO5WYPorodAF01QNdKZnyj+N4rjbAPwHWGUYuHx21qgncB2Qp
XjuXwYNM8zDt8zVuAqS+omftQaR/qoZarL2bBM8SKTzJ3K/Ja9AP89IeyrIzxg==
=NQ6g
-----END PGP SIGNATURE-----
On 09/03/2017 10:58 PM, Michael Hudson-Doyle wrote:
>
>
> On 1 September 2017 at 15:55, Simon Quigley <[email protected]
> <mailto:[email protected]>> 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
>
>