automation: python scripts sync'ing linux repos/db

1. Synchronize linux-upstream, linux-stable, linux-chromeos repositories
2. Updates SQL tables with most recently pulled repo data

BUG=None
TEST=None

Change-Id: I8909dfd9c38124abb66daf0498f4c24b6ae70e6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2050096
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Tested-by: Hirthanan Subenderan <hirthanan@google.com>
Commit-Queue: Hirthanan Subenderan <hirthanan@google.com>
diff --git a/contrib/findmissing/initdb_stable.py b/contrib/findmissing/initdb_stable.py
index 709c374..c4da40f 100755
--- a/contrib/findmissing/initdb_stable.py
+++ b/contrib/findmissing/initdb_stable.py
@@ -8,13 +8,12 @@
 """Module parses and stores data from stable linux patch."""
 
 from __future__ import print_function
-
 import sqlite3
 import os
 import subprocess
-from config import STABLE_PATH, STABLE_BRANCHES
-from common import WORKDIR, CHERRYPICK, STABLE, STABLE2, make_downstream_table
-from common import stabledb, stable_branch, createdb
+from common import STABLE_PATH, SUPPORTED_KERNELS, \
+        WORKDIR, CHERRYPICK, STABLE, STABLE2, make_downstream_table, \
+        stabledb, stable_branch, createdb
 
 
 def search_usha(sha):
@@ -89,7 +88,7 @@
     """Updates the stabledb index for all stable branches."""
     os.chdir(STABLE_PATH)
 
-    for branch in STABLE_BRANCHES:
+    for branch in SUPPORTED_KERNELS:
         start = 'v%s' % branch
         db = stabledb(branch)
         bname = stable_branch(branch)