From 159f63ce9cac1a7e154a091d81bf81b4e123fb1b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 28 Sep 2012 18:40:00 +0200 Subject: [PATCH] fix add_package_instances and logging --- db_add.py | 3 ++- debian_build.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/db_add.py b/db_add.py index 70a4802..0b44674 100755 --- a/db_add.py +++ b/db_add.py @@ -11,10 +11,11 @@ import subprocess import time import fileinput import psycopg2 -import logging from common_code import * from cidb import * +logger = logger_init() + def db_add_job(con, name): cur = con.cursor() cur.execute("SAVEPOINT a") diff --git a/debian_build.py b/debian_build.py index 6efa345..79147f5 100755 --- a/debian_build.py +++ b/debian_build.py @@ -574,7 +574,7 @@ if __name__ == '__main__': package_instances=[] if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME == 'develop' or GIT_BRANCH_NAME.startswith('hotfix/'): try: - package_instances = add_package_instance("profitbricks", BUILD_JOBNAME, BUILD_NUMBER, changes_file, version, BUILD_START, BUILD_END) + package_instances = add_package_instances("profitbricks", BUILD_JOBNAME, BUILD_NUMBER, changes_file, version, BUILD_START, BUILD_END) except Exception, error: cmd = ['figlet-figlet', '-t', 'CIDB problem:'] subprocess.check_call(cmd) -- 2.39.5