]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix syntax
authorHolger Levsen <holger@layer-acht.org>
Thu, 3 Nov 2011 15:35:08 +0000 (16:35 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 3 Nov 2011 15:35:08 +0000 (16:35 +0100)
kernel_build.py

index facb52d73176c509767b4aa1982e457d6b06fd1f..b2063dc9687843f6644728a3ecb2583c8063b49e 100644 (file)
@@ -24,8 +24,6 @@ GIT_OLD_ID = os.environ.get('GIT_OLD_ID')
 GIT_NEW_ID = os.environ.get('GIT_NEW_ID')
 GIT_BRANCH_NAME = os.environ.get('GIT_BRANCH_NAME')
 
-SOURCE_BUILD = os.environ.get('SOURCE_BUILD')
-
 GIT_COMMITTER_EMAIL = os.environ.get('GIT_COMMITTER_EMAIL')
 
 SMTP_SERVER = 'roma.profitbricks.localdomain'
@@ -71,7 +69,7 @@ def send_email(result):
 def build_kernel_with_pbuilder(revision, pbuilder_script, dist='stable'):
     pbuilder_script = os.path.abspath(pbuilder_script)
 
-    if SOURCE_BUILD:
+    if os.environ.get('SOURCE_BUILD'):
         SOURCE_BUILD='--source-only'
     else:
         SOURCE_BUILD=''