From: hataejun Date: Thu, 23 Aug 2012 06:43:58 +0000 (+0900) Subject: [Title] package server loation change when create server X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0140167176218ac6c3d8fa28798e7ca47bafc388;p=sdk%2Ftools%2Fsdk-build.git [Title] package server loation change when create server [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/src/pkg_server/packageServer.rb b/src/pkg_server/packageServer.rb index cc7813c..a82abdb 100644 --- a/src/pkg_server/packageServer.rb +++ b/src/pkg_server/packageServer.rb @@ -84,7 +84,11 @@ class PackageServer if loc.nil? or loc.empty? then @location = Dir.pwd + "/" + @id else - @location = File.join(loc, @id) + if Utils.is_absolute_path(loc) then + @location = File.join(loc, @id) + else + @location = File.expand_path(File.join(Dir.pwd, loc, @id)) + end end # error check : check for already exist in server @id