tko fixups
git-svn-id: http://test.kernel.org/svn/autotest/trunk@669 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/parse.py b/tko/parse.py
index d3849c1..19b99c9 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -71,15 +71,14 @@
print line
(type, rest) = line.split(': ', 1)
words = rest.split()
- if type == 'BUILD VERSION':
+ if type == 'BASE':
self.base = words[0]
if type == 'PATCH':
print words
self.patches.append(patch(*words[0:]))
# patch_hashes.append(words[2])
- if not self.base:
- return None
- self.kernel_hash = self.get_kver_hash(self.base, patch_hashes)
+ if self.base:
+ self.kernel_hash = self.get_kver_hash(self.base, patch_hashes)
def get_kver_hash(self, base, patch_hashes):