-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
On 09/03/2017 10:58 PM, Michael Hudson-Doyle wrote:
> On 1 September 2017 at 15:55, Simon Quigley <email@example.com
> <mailto:firstname.lastname@example.org>> 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
> > (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  or callbacks are
whatever they're called. Why not create a dedicated package
(dput-ng-ubuntu or something) that provides those hooks?