[Title] Fixed to check distribution when RESOLVE operation
authordonghee yang <donghee.yang@samsung.com>
Thu, 11 Oct 2012 10:14:23 +0000 (19:14 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Thu, 11 Oct 2012 10:14:23 +0000 (19:14 +0900)
src/build_server/BuildJob.rb

index a9ccb695404f73a6a7a07a90ca9e62ecd901a01a..e864d95d894d9befb6ed1fefaa7035efe25900a7 100644 (file)
@@ -706,6 +706,11 @@ class BuildJob < CommonJob
        # return pending job that wait for me
        def get_pending_ancestor_job()
         @server.jobmgr.get_pending_jobs.each do |job|
+                       # must have same distribution
+                       if get_distribution_name() != job.get_distribution_name() then
+                               next
+                       end
+                       
             if job.is_rev_fail_project(@project,@os) then
                 return job
             end