Ticket #8723: port.tcl.diff

File port.tcl.diff, 1.1 KB (added by jpm@…, 18 years ago)

diff that fixes the errant message being printed

  • base/src/port/port.tcl

    RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/port/port.tcl,v
    retrieving revision 1.159
    diff -u -d -b -w -r1.159 port.tcl
     
    15721572        }
    15731573
    15741574        if { [llength $ilist] > 0 } {
    1575                 puts "The following installed ports are outdated:"
     1575                set num_outdated 0
    15761576       
    15771577                foreach i $ilist {
    15781578               
     
    16341634                               
    16351635                                # Emit information
    16361636                                if {$comp_result < 0 || [ui_isset ports_verbose]} {
     1637                               
     1638                                        # Check if this is the first outdated port listed
     1639                                        if {$num_outdated == 0} {
     1640                                                puts "The following installed ports are outdated:"
     1641                                        }
     1642                               
    16371643                                        puts [format "%-30s %-24s %1s" $portname "$installed_compound $relation $latest_compound" $flag]
     1644                                       
     1645                                        set num_outdated $num_outdated+1
    16381646                                }
    16391647                               
    16401648                        }
    16411649                }
    1642         } else {
     1650               
     1651                if {$num_outdated == 0} {
    16431652                puts "No installed ports are outdated."
    16441653        }
    16451654       
     1655        } else {
     1656                puts "No ports are installed."
     1657        }
     1658       
    16461659        return $status
    16471660}
    16481661