From: jonghwan2.park Date: Mon, 27 Jan 2014 12:53:20 +0000 (+0900) Subject: DIBS: Fixed function for generate package lsit file X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=570146c34a1e8f2263c2825353dad038d0d66a5f;p=sdk%2Ftools%2Fsdk-build.git DIBS: Fixed function for generate package lsit file Change-Id: I091530de581c5014b45de6cf199872189e6929e9 Signed-off-by: jonghwan2.park --- diff --git a/src/pkg_server/client.rb b/src/pkg_server/client.rb index b4b5749..b587e4a 100644 --- a/src/pkg_server/client.rb +++ b/src/pkg_server/client.rb @@ -505,8 +505,17 @@ class Client # download packages img_pkg_list.each do |pkg| download(pkg, os, false, "#{workspace}/binary") end + # update pkg list + list_path = get_pkglist_path() + read_remote_pkg_list(list_path) + # write pkg_list_os file - FileUtils.cp("#{get_pkglist_path}/pkg_list_#{os}", "#{workspace}") + f = File.new("#{workspace}/pkg_list_#{os}", "w"); + img_pkg_list.each do |pkg| + f.write( @pkg_hash_os[os][pkg] ); + f.write("\n\n"); + end + f.close # write os_info file File.open("#{workspace}/#{OS_INFO_FILE}", 'w') do |f| f.puts os end