lib/dep_selector/dependency_graph.rb
# Note: only invoke this method once all Packages and
# PackageVersions have been added.
only invoke this method once all Packages and
PackageVersions have been added.
only invoke this method once all Packages and PackageVersions have been added .
def generate_gecode_wrapper_constraints(packages_to_include_in_solve=nil)
      unless @gecode_wrapper
        packages_in_solve =
          if packages_to_include_in_solve
            packages_to_include_in_solve
          else
            packages.map{ |name, pkg| pkg }
          end
        debugFlag = DebugOptionFile && File::exists?(DebugOptionFile)
        @gecode_wrapper = GecodeWrapper.new(packages_in_solve.size + 1, debugFlag)
        packages_in_solve.each{ |pkg| pkg.generate_gecode_wrapper_constraints }
      end
    end
def generate_gecode_wrapper_constraints ( packages_to_include_in_solve = nil ) unless @gecode_wrapper packages_in_solve = if packages_to_include_in_solve packages_to_include_in_solve else packages . map { | name , pkg | pkg } end debugFlag = DebugOptionFile && File :: exists? ( DebugOptionFile ) @gecode_wrapper = GecodeWrapper . new ( packages_in_solve . size + 1 , debugFlag ) packages_in_solve . each { | pkg | pkg . generate_gecode_wrapper_constraints } end end
Note: only invoke this method once all Packages and
PackageVersions have been added.
Note : only invoke this method once all Packages and PackageVersions have been added .
# In addition to all the packages that the user specified, # there is a "ghost" package that contains the solution # constraints. See Selector#solve for more information.
packages_to_include_in_solve
<not_specific>