Comment 1 for bug 1087237

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Ah, I see the rational of mis-detection.
So:
if line.split()[0] in ('kernel', 'linux'):
    newkernel = line.split()[1].strip('./')

Should satisfy that requirement? Split strips leading whitespace.
We could even introduce a temp variable to hold line.spit() list.....