[Title] Fixed pkg-sync job to show its log correctly
authordonghee yang <donghee.yang@samsung.com>
Tue, 12 Mar 2013 01:33:17 +0000 (10:33 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Tue, 12 Mar 2013 01:33:17 +0000 (10:33 +0900)
src/build_server/PackageSync.rb

index afc2598842173c7177ecd23bba82891e968833dc..06953497fb6f7673a7d1768b32bd9cf333a8d947 100644 (file)
@@ -108,9 +108,11 @@ class PackageSyncAction < Action
                                        next
                                end
                                new_job.priority = CommonJob::AUTO_JOB_PRIORITY
-                               new_job.create_logger( nil )
 
-                               # add
+                               # add job
+                               @server.jobmgr.commit_job(new_job)
+                               # create logger, this step must be done after 'commit'
+                               new_job.create_logger( nil )
                                @server.jobmgr.add_job( new_job )
                                registered_jobs.push new_job
                        end