[Title] Fixed a bug that checking install dependency does not be applied
authordonghee yang <donghee.yang@samsung.com>
Thu, 16 Aug 2012 03:25:06 +0000 (12:25 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Thu, 16 Aug 2012 03:25:06 +0000 (12:25 +0900)
src/build_server/BuildJob.rb

index 86967c5d73fd78048e0195798ee846725963438f..db88a7c0f5aec02c6a4b9cd6177e10e88f2c1f46 100644 (file)
@@ -609,17 +609,16 @@ class BuildJob
                for dep in @pkginfo.get_install_dependencies( @os )
                        # if parent exist, search pkginfos for all sub jobs
                        # if not found, check package server
-                       ver_svr = nil
+                       found = false
                        if not @parent.nil? and @parent.type == "MULTIBUILD" then
                                @parent.sub_jobs.each { |j|
                                        os = (dep.target_os_list.empty?) ? @os : dep.target_os_list[0]
                                        if j.pkginfo.pkg_exist?(dep.package_name, dep.base_version, os) then
-                                               ver_svr = dep.base_version
-                                               break
+                                               found = true; break
                                        end
                                }
                        end
-                       if not ver_svr.nil? then next end
+                       if found then next end
 
                        if not remote_package_of_dependency_exist?(dep) then
                                unmet_ideps.push dep