Ticket #17473: macports.tcl.diff

File macports.tcl.diff, 1.0 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 15 years ago)
  • macports.tcl

    old new  
    20222022        return 1
    20232023    }
    20242024
     2025    if {![info exists portinfo(poison_version)]} {
     2026        ui_error "Invalid port entry for $portname, missing poison_version"
     2027        return 1
     2028    }
     2029    set poison_version $portinfo(poison_version)
     2030    if { [rpm-vercomp $poison_version $version_installed] > 0 } {
     2031        ui_debug "${portname} ${poison_version} was a significant change and ${portname} ${poison_version} > ${portname} ${version_installed}"
     2032        if {![info exists options(ports_do_dependents)]} {
     2033            ui_debug "    upgrading dependents even without -R option"
     2034        }
     2035        if {![info exists options(ports_force)]} {
     2036            ui_debug "    forcing upgrade even without -f option"
     2037        }
     2038        set options(ports_do_dependents) 1
     2039        set options(ports_force) 1
     2040    }
     2041
    20252042    # Check if we have to do dependents
    20262043    if {[info exists options(ports_do_dependents)]} {
    20272044        # We do dependents ..