[Title] package server loation change when create server
authorhataejun <taejun.ha@samsung.com>
Thu, 23 Aug 2012 06:43:58 +0000 (15:43 +0900)
committerhataejun <taejun.ha@samsung.com>
Thu, 23 Aug 2012 06:43:58 +0000 (15:43 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

src/pkg_server/packageServer.rb

index cc7813c15965f93d930c996427e4bec80a3abf4d..a82abdb2a67b3548e3ff8bf75d2d4c03ecca0614 100644 (file)
@@ -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