From 850c900d552ee645c4f2584bbec9eea6821be354 Mon Sep 17 00:00:00 2001 From: hataejun Date: Sat, 18 Aug 2012 12:47:59 +0900 Subject: [PATCH] [Title] copy os info file to snapshot directory when generate snapshot [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- src/pkg_server/distribution.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkg_server/distribution.rb b/src/pkg_server/distribution.rb index 92752ca..55dcadd 100644 --- a/src/pkg_server/distribution.rb +++ b/src/pkg_server/distribution.rb @@ -151,6 +151,10 @@ class Distribution # copy archive package list FileUtils.copy_file( "#{snapshot_path}/#{ARCHIVE_PKG_FILE}", "#{@location}/snapshots/#{name}/#{ARCHIVE_PKG_FILE}" ) + + # copy os info file + FileUtils.copy_file( "#{snapshot_path}/#{OS_INFO_FILE}", + "#{@location}/snapshots/#{name}/#{OS_INFO_FILE}" ) # update snapshot.info file information tmp_file_name = @location + "/temp/." + Utils.create_uniq_name -- 2.34.1