[Title] Fixed "download" problem
authordonghee yang <donghee.yang@samsung.com>
Wed, 17 Oct 2012 05:18:14 +0000 (14:18 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Wed, 17 Oct 2012 05:18:14 +0000 (14:18 +0900)
src/pkg_server/downloader.rb

index 1443e83969a490830eb416a046bb3c7338d6f8e6..ab4758f283e17c997d8491ec865b4e4a9b7ea516 100644 (file)
@@ -46,7 +46,7 @@ class FileDownLoader
                logger.info "Downloading #{url}"
                if is_remote then
                        pid,status = Utils.execute_shell_with_log( "wget #{url} -O #{fullpath} -nv --tries=3", logger.path )
-                       ret = (not status.nil? and status.exitstatus) != 0 ? false : true
+                       ret = (not status.nil? and status.exitstatus != 0) ? false : true
                        #ret = Utils.execute_shell( "wget #{url} -O #{fullpath} -q")
                else
                        if not File.exist? url then