From c0eadd5dac35d02bc40485ac491545b07bf1cb0f Mon Sep 17 00:00:00 2001 From: Sandy Date: Mon, 14 Jul 2014 18:01:12 -0400 Subject: [PATCH] Be more forgiving in detecting Modules Loaded There is no problem yet, but this line is prone to future errors. This line catches all cases without having to pool the filesystem. --- runbot/runbot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 36daa1d5..87572989 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -651,8 +651,7 @@ class runbot_build(osv.osv): v = { 'job_end': time.strftime(openerp.tools.DEFAULT_SERVER_DATETIME_FORMAT, log_time), } - logger = 'odoo.modules.loading' if os.path.exists(build.path('odoo')) else 'openerp.modules.loading' - if grep(log_all, "%s: Modules loaded." % logger): + if grep(log_all, ".modules.loading: Modules loaded."): if rfind(log_all, _re_error): v['result'] = "ko" elif rfind(log_all, _re_warning):