# HG changeset patch
# User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>
# Date 1466522408 -7200
#      Tue Jun 21 17:20:08 2016 +0200
# Node ID 678d82531e71b3d344f7479e2dd738034de0088d
# Parent  c8dce345a2b0bccba556c31cb674a31739c4dd92
fix docker build to use setup.cfg and not the old odoo_type file

diff --git a/docker_build b/docker_build
--- a/docker_build
+++ b/docker_build
@@ -15,7 +15,7 @@
 popd
 
 # Grab latest base image
-ODOO_TYPE=$(cat $project_home/odoo_type)
+ODOO_TYPE=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print c.get('odoo_scripts', 'odoo_type', 'odoo8')")
 
 if [ "$ODOO_TYPE" = "odoo8" ];
 then