New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79540


Ignore:
Timestamp:
06/16/11 16:44:00 (4 years ago)
Author:
cal@…
Message:

rev-upgrade: Move logic to macports1.0, port/port.tcl only remains the client

Implement setting the binary flag in the database

Location:
branches/gsoc11-rev-upgrade/base/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc11-rev-upgrade/base/src/macports1.0/macports.tcl

    r78396 r79540  
    35153515    } 
    35163516} 
     3517 
     3518proc macports::revupgrade {args} { 
     3519    set files [registry::file search active 1 binary -null] 
     3520    if {[llength $files] > 0} { 
     3521        ui_msg "---> Updating database of binaries" 
     3522        set i 1 
     3523        foreach f $files { 
     3524            ui_debug "Updating binary flag for file $i of [llength $files]: [$f path]" 
     3525            incr i 
     3526            $f binary [fileIsBinary [$f path]] 
     3527        } 
     3528    } 
     3529    return 0; 
     3530} 
  • branches/gsoc11-rev-upgrade/base/src/port/port.tcl

    r78972 r79540  
    24672467 
    24682468proc action_revupgrade { action portlist opts } { 
    2469     set files [registry::file search active 1 binary -null] 
    2470     puts "[llength $files] elements in the list" 
    2471     foreach f $files { 
    2472         puts [$f path] 
    2473     } 
    2474     return 0 
     2469    return [macports::revupgrade] 
    24752470} 
    24762471 
Note: See TracChangeset for help on using the changeset viewer.