kernel-series-info.yaml redux

Brad Figg brad.figg at canonical.com
Tue Nov 14 17:14:52 UTC 2017


On Tue, Nov 14, 2017 at 04:02:07PM +0000, Andy Whitcroft wrote:
> On Tue, Nov 14, 2017 at 07:40:30AM -0800, Brad Figg wrote:
> [...]
> > What do you think about defining a new class KernelSeries (for example)
> > which consumes the new format directly? That class defines the new accessors.
> > As we go through our existing code base it will be easy to see what remaining
> > code still imports the old code. In the end, after everything has been
> > converted over we simply delete ktl/ubuntu.py and move on.
> 
> Likely we could just put KernelSeries in ktl/ubuntu.py.  As we almost
> exclusivly 'from ktl.ubuntu import Ubuntu' and the new would be 'from
> ktl.ubuntu import KernelSeries' sort of thing.  But yes a new class
> seems most sensible.

I was just thinking that as we replace old with new the import of ktl/ubuntu.py
would disappear and anything still importing it needed to be converted.

> 
> [...]
> 
> -apw

-- 
Brad Figg brad.figg at canonical.com http://www.canonical.com




More information about the kernel-team mailing list