From 570146c34a1e8f2263c2825353dad038d0d66a5f Mon Sep 17 00:00:00 2001 From: "jonghwan2.park" Date: Mon, 27 Jan 2014 21:53:20 +0900 Subject: [PATCH] DIBS: Fixed function for generate package lsit file Change-Id: I091530de581c5014b45de6cf199872189e6929e9 Signed-off-by: jonghwan2.park --- src/pkg_server/client.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.34.1