[Title] copy os info file to snapshot directory when generate snapshot
authorhataejun <taejun.ha@samsung.com>
Sat, 18 Aug 2012 03:47:59 +0000 (12:47 +0900)
committerhataejun <taejun.ha@samsung.com>
Sat, 18 Aug 2012 03:47:59 +0000 (12:47 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

src/pkg_server/distribution.rb

index 92752cae7178e66999b52de6eeef72e4d7e4f2cc..55dcadd9597369611d84eeb04a5c010a6f844dec 100644 (file)
@@ -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