Ticket #22557: macports.tcl.2.diff

File macports.tcl.2.diff, 556 bytes (added by nerdling (Jeremy Lavergne), 14 years ago)

test for arch in list

  • src/macports1.0/macports.tcl

     
    753753        } else {
    754754            set macports::build_arch ""
    755755        }
     756    } else {
     757        if {[lsearch {i386 x86_64 ppc ppc64} ${macports::build_arch}] < 0} {
     758            return -code error "build_arch '${macports::build_arch}' doesn't make sense (is not one of {i386 x86_64 ppc ppc64})."
     759        }
    756760    }
    757761
    758762    # ENV cleanup.