Changeset 71882


Ignore:
Timestamp:
Sep 26, 2010, 2:12:58 AM (10 years ago)
Author:
raimue@…
Message:

port1.0: Deprecate distcheck.check, renamed to distcheck.type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portdistcheck.tcl

    r70982 r71882  
    4747
    4848# define options
    49 options distcheck.check
     49options distcheck.type distcheck.check
    5050
    5151# defaults
     52default distcheck.type moddate
    5253default distcheck.check moddate
    5354
     55# Deprecation
     56option_deprecate distcheck.check distcheck.type
     57
    5458proc portdistcheck::distcheck_main {args} {
    55     global distcheck.check
     59    global distcheck.type
    5660    global fetch.type
    5761    global fetch.ignore_sslcert
     
    6872
    6973    # Check the distfiles if it's a regular fetch phase.
    70     if {"${distcheck.check}" != "none"
     74    if {"${distcheck.type}" != "none"
    7175        && "${fetch.type}" == "standard"} {
    7276        # portfetch 1.0::checkfiles sets fetch_urls list.
     
    8286                set urlmap($url_var) $master_sites
    8387            }
    84             if {${distcheck.check} == "moddate"} {
     88            if {${distcheck.type} == "moddate"} {
    8589                set count 0
    8690                foreach site $urlmap($url_var) {
     
    99103                    ui_error "no mirror had $distfile for $name"
    100104                }
    101             } elseif {${distcheck.check} == "filesize"} {
     105            } elseif {${distcheck.type} == "filesize"} {
    102106                set count 0
    103107                foreach site $urlmap($url_var) {
     
    119123                }
    120124            } else {
    121                 ui_error "unknown distcheck.check ${distcheck.check}"
     125                ui_error "unknown distcheck.type ${distcheck.type}"
    122126                break
    123127            }
    124128        }
    125129
    126         if {${distcheck.check} == "filesize" && $totalsize > 0} {
     130        if {${distcheck.type} == "filesize" && $totalsize > 0} {
    127131            if {$totalsize < 1024} {
    128132                set size $totalsize
Note: See TracChangeset for help on using the changeset viewer.