From: Holger Levsen Date: Tue, 20 Sep 2011 10:07:36 +0000 (+0200) Subject: also strip .git from repo name to determine the flavour name X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=acc16bbec261a8d963feb5549bf30e062a5b5c23;p=profitbricks%2Fjenkins-build-scripts.git also strip .git from repo name to determine the flavour name --- diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 2774d36..757e43c 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -253,7 +253,8 @@ def create_file(path,data): raise def determine_kernel_flavour(): - flavour = GIT_REPO_NAME[6:] + # strip the first 6 characters ("linux-") and the last 4 (".git") + flavour = GIT_REPO_NAME[6:-4] # slightly different version numbers per branch if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix'):