From: jiil.hyoun Date: Mon, 26 Nov 2012 03:37:16 +0000 (+0900) Subject: [Title] read config bug fix X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=329a2c7db98aa09a95ec446cb812d55308ef70c5;p=sdk%2Ftools%2Fsdk-build.git [Title] read config bug fix [Type] Bugfix [Module] Toolchain / [Priority] Major [Jira#] [Redmine#] [Problem] use id not @id [Cause] [Solution] [TestCase] Change-Id: I0c59db14ff80f6f4d0a2a8ce40b29874bf75f4eb --- diff --git a/src/build_server/BuildServerController.rb b/src/build_server/BuildServerController.rb index 2f7a77e..c5c274f 100644 --- a/src/build_server/BuildServerController.rb +++ b/src/build_server/BuildServerController.rb @@ -871,13 +871,13 @@ class BuildServerController elsif l.start_with?("DB_DSN=") case l[idx,length].strip when /^SQLite3:(.*)/i then - if $1.strip.empty? then db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{@id}/server.db" + if $1.strip.empty? then db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{id}/server.db" else db_dsn = "SQLite3:#{$1.strip}" end when /^Mysql:(.*)/i then db_dsn = "Mysql:#{$1}" else - db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{@id}/server.db" + db_dsn = "SQLite3:#{BuildServer::CONFIG_ROOT}/#{id}/server.db" end elsif l.start_with?("DB_USER=") db_user = l[idx,length].strip if not l[idx,length].strip.empty?