end
+ def get_distribution_name()
+ return @project.dist_name
+ end
+
+
def get_buildroot()
return @buildroot_dir
end
def is_compatible_with?(o)
+ # must have same distribution
+ if get_distribution_name() != o.get_distribution_name() then
+ return false
+ end
+
if type != o.type then return false end
my_project = get_project()
def has_same_packages?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
+
# same package must have same os
if not @os.eql? wjob.os then
return false
def does_depend_on?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
+
# compare build dependency
get_build_dependencies(@os).each do |dep|
wjob.get_packages().each do |wpkg|
def does_depended_by?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
+
get_packages().each do |pkg|
wjob.get_build_dependencies(wjob.os).each do |dep|
# dep package of working job must have same name and target os
end
+ def get_distribution_name()
+ first_project = @sub_jobs[0].get_project().dist_name
+ end
+
+
def get_buildroot()
return @buildroot_dir
end
def has_same_packages?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
# same package must have same os
if not @os.eql? wjob.os then
def does_depend_on?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
# compare build dependency
get_build_dependencies(@os).each do |dep|
def does_depended_by?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
get_packages().each do |pkg|
wjob.get_build_dependencies(wjob.os).each do |dep|
end
+ def get_distribution_name()
+ return @project.dist_name
+ end
+
+
def get_buildroot()
return @buildroot_dir
end
def has_same_packages?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
+
if @type != wjob.type then return false end
case @pkg_type
def does_depended_by?( wjob )
+ # must have same distribution
+ if get_distribution_name() != wjob.get_distribution_name() then
+ return false
+ end
+
if @pkg_type == "BINARY" then
wjob.get_build_dependencies(wjob.os).each do |dep|
# dep package of working job must have same name and target os