From f6d4f034e90997128ca4f6e544c5fd467f0b99e8 Mon Sep 17 00:00:00 2001 From: Robin Wittler Date: Wed, 7 Sep 2011 11:33:00 +0200 Subject: [PATCH] fix global error --- build.py | 1 + lib/git_buildpackage.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index e1f86b5..f9ba9b8 100755 --- a/build.py +++ b/build.py @@ -104,6 +104,7 @@ logger.setLevel(logging.DEBUG) def send_email(result): smtp = smtplib.SMTP(SMTP_SERVER) if result == SMTP_BUILD_ERROR: + global SMTP_TEXT SMTP_TEXT += '\nThe filesystem path is: %s' %(GIT_TARGET_WORKSPACE) msg = ( 'From: %s\n' %(SMTP_FROM) + diff --git a/lib/git_buildpackage.py b/lib/git_buildpackage.py index fb874b7..b54c6f0 100644 --- a/lib/git_buildpackage.py +++ b/lib/git_buildpackage.py @@ -61,8 +61,7 @@ class GitBuildPackage(object): # '%s returned with %s. Output was: %s' # %(' '.join(cmd), ret, error_str) # ) - return False - return True + return ret # vim: autoindent smartindent tabstop=4 expandtab shiftwidth=4 softtabstop=4 nu enc=utf-8 cinwords=if,elif,else,for,while,try,except,finally,def,class -- 2.39.5