[Title] fix wrong variable
authorjiil.hyoun <jiil.hyoun@samsung.com>
Fri, 15 Mar 2013 07:41:50 +0000 (16:41 +0900)
committerjiil.hyoun <jiil.hyoun@samsung.com>
Fri, 15 Mar 2013 07:41:50 +0000 (16:41 +0900)
[Type] Bugfix
[Module] Toolchain /
[Priority] Major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I6fa649585e4c1cabcffd56acfee64daef5635165

src/pkg_server/client.rb

index b864fe92f5aa86fea2c50ba948d8e2f6172904c7..0f18d73f0be103e5393066c7b5b0d2aa8d72b7b8 100644 (file)
@@ -371,7 +371,7 @@ class Client
        private
        def add_file_to_cache(filepath)
                if filepath.nil? or filepath.empty? then return end
-               if not File.exist? @download_path then FileUtils.mkdir_p "#{download_path}" end
+               if not File.exist? @download_path then FileUtils.mkdir_p "#{@download_path}" end
 
                filename = File.basename(filepath)
                cachefile = File.join(@download_path, filename)
@@ -385,7 +385,7 @@ class Client
 
                if not File.exist? cachefile then
                        @log.info "Failed to move [#{filename}] to "
-                       @log.info "  [#{download_path}]"
+                       @log.info "  [#{@download_path}]"
                end
                remove_old_files_in_cache
        end