[kteam-tools][PATCH] create-stable-tracker: fix detection of upstream stable repo

Kamal Mostafa kamal at canonical.com
Tue Mar 24 20:49:31 UTC 2015

Look for "-ckt" in the version string to detect the Canonical-maintained
stable repos.

Note: the old startswith("3.5") / ("3.8") code was dysfunctional anyway,
since the version strings actually started with e.g. "v3.5".  We no longer
need to handle the pre-ckt versioned releases, so those are just removed
instead of fixed.

Signed-off-by: Kamal Mostafa <kamal at canonical.com>
 stable/create-stable-tracker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stable/create-stable-tracker b/stable/create-stable-tracker
index 33aeee7..4aad4d4 100755
--- a/stable/create-stable-tracker
+++ b/stable/create-stable-tracker
@@ -146,7 +146,7 @@ class CreateTrackingBug(StdApp):
             title = "%s update to %s stable release" % (series.title(), self.cfg['version'])
             # Repository - see if it's a tree we maintain
-            if version.startswith("3.5") or version.startswith("3.8"):
+            if "-ckt" in version:
                 repository = "git://kernel.ubuntu.com/ubuntu/linux.git"
                 repository = "git://git.kernel.org/"

More information about the kernel-team mailing list