Re: linting wrapper for dput

2017-09-16 Thread Juerg Haefliger


On 09/03/2017 10:58 PM, Michael Hudson-Doyle wrote:
> 
> 
> On 1 September 2017 at 15:55, Simon Quigley  > 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 [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 
> 
> 



signature.asc
Description: OpenPGP digital signature
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: linting wrapper for dput

2017-09-05 Thread Michael Hudson-Doyle
On 6 September 2017 at 08:14, Brian Murray  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



Cheers,
mwh
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: linting wrapper for dput

2017-09-05 Thread Brian Murray
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?

Thanks!
--
Brian Murray

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: linting wrapper for dput

2017-09-03 Thread Michael Hudson-Doyle
On 1 September 2017 at 15:55, Simon Quigley  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 :)

Cheers,
mwh
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: linting wrapper for dput

2017-08-31 Thread Simon Quigley
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'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?

-- 
Simon Quigley
tsimo...@ubuntu.com
tsimonq2 on freenode and OFTC
5C7A BEA2 0F86 3045 9CC8
C8B5 E27F 2CF8 458C 2FA4

-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


linting wrapper for dput

2017-08-31 Thread Michael Hudson-Doyle
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).

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 :)

Cheers,
mwh
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel